Hehe Nao Vi em nenhun forum uso muito no meu serv huhu!!
Entao Resolvi posta !!!
Vamos começar!
em commands.ccp
abaixo de :
{"/raid",&Commands::forceRaid},
Adicione :
#ifdef __EXIT_MUS__
{"/exit",&Commands::exit},
#endif
la no final add!
#ifdef __EXIT_MUS__
bool Commands::exit(Creature* creature, const std::string& cmd, const std::string& param)
{
Player* playerKick = creature->getPlayer();
if(playerKick){
playerKick->kickPlayer();
}
return true;
}
#endif
Agora em Commands.h
abaixo de :
bool forceRaid(Creature* creature, const std::string& cmd, const std::string& param);
Add:
#ifdef __EXIT_MUS__
bool exit(Creature* creature, const std::string& cmd, const std::string& param);
#endif
Agora nos parametros :
-D__EXIT_MUS__
Creditos : Todos Meus!!!