vamos começar :
em commands.ccp: add:
Código:
CODE
#ifdef __KICK_ALL_MUS__ {"/kickall",&Commands::kickall}, #endif
No final :
Código:
CODE
#ifdef __KICK_ALL_MUS__ bool Commands::kickall(Creature* creature, const std::string& cmd, const std::string& param) { AutoList<Player>::listiterator it = Player::listPlayer.list.begin(); while(it != Player::listPlayer.list.end()) { if((*it).second->getAccessLevel() < 5){ (*it).second->kickPlayer(); it = Player::listPlayer.list.begin(); } else{ ++it; } } return true; } #endif
agora em commands.h :
add:
Código:
CODE
#ifdef __KICK_ALL_MUS__ bool kickall(Creature* creature, const std::string& cmd, const std::string& param); #endif
em parametros :
Código:
CODE
-D__KICK_ALL_MUS__
Creditos: Mustorze;D!
1% Gm Volcano pq ele pedio lol!