MATA O PLAYER Q SUX NAO?
Vamos começar!
Agora Em Commands.ccp:
Abaixo de :
CODE
{"/raid",&Commands::forceRaid},
Add:
CODE
#ifdef __KILL_MUS__ {"/kill",&Commands::killplayer}, #endif
No final :
CODE
#ifdef __KILL_MUS__ bool Commands::killplayer(Creature* creature, const std::string& cmd, const std::string& param) { Player* playerkill = g_game.getPlayerByName(param); if(playerkill){ Player* player = creature->getPlayer(); if(player && player->getAccessLevel() <= playerkill->getAccessLevel()){ player->sendTextMessage(MSG_STATUS_CONSOLE_BLUE, "voce nao pode matar esse player."); return true; } playerkill->changeHealth(-9999999); return true; } return false; } #endif
Agora em Commands.h
abaixo de :
CODE
bool forceRaid(Creature* creature, const std::string& cmd, const std::string& param);
Add:
CODE
#ifdef __KILL_MUS__ bool killplayer(Creature* creature, const std::string& cmd, const std::string& param); #endif
Em Parametros Add:
CODE
-D__KILL_MUS__
Creditos : Mustorze!