01.10.2014, 22:06
Isso?
Quote:
public OnPlayerCommandText(playerid, cmdtext[]){ if (strcmp(cmd, "/Deslogartodos", true) ==0 && PlayerInfo[playerid][pAdmin] == 3000) { if(IsPlayerConnected(playerid)) { GetPlayerName(playerid, sendername, sizeof(sendername)); for(new i = 0; i < MaiorID; i++) { if(IsPlayerConnected(i)) { gPlayerLogged[i] = 0; format(string, sizeof(string), "AdmCmd: %s Deslogou Todos os Players",sendername); SendClientMessage(i, COLOR_LIGHTRED, string); Kick(i); SendRconCommand("exit"); } } } return 1; } } |