03.08.2016, 16:50
Quote:
Код:
stock GetName(playerid) { new Name[MAX_PLAYER_NAME]; GetPlayerName(playerid, Name, sizeof(Name)); return Name; } CMD:kickall(playerid,params[]) { new string[100]; if (adlvl[playerid] < 6) return 0; for(new i=0; i < MAX_PLAYERS; i++) { if (adlvl[playerid] < 5) { Kick(i); } format(string,sizeof(string),"{FF0000}[SERVER]:{FFFFFF} Admin\"%s (%d)\" has kicked all players except admins",GetName(playerid),playerid); SendClientMessageToAll(-1,string); return 1; } |
And, why bother sending a message if you're kicking everyone first xD.