03.08.2016, 16:49
Код:
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++) { 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; }