Advertisement
ricop522

[PAWN] Comando de /gmx

Aug 26th, 2011
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.71 KB | None | 0 0
  1. if (!strcmp(cmd, "/gmx", true))
  2.     {
  3.         if(!IsPlayerConnected(playerid)) return 1;
  4.         if (IsAdmin(playerid, 6)) {
  5.             for(new i = 0; i < MAX_REAL; ++i) {
  6.                 if(!IsPlayerConnected(i)) return 1;
  7.                     SendClientMessage(i, COLOR_LIGHTRED, "ADVANCED: O nosso servidor está reiniciando, voltaremos em trinta segundos.");
  8.                     OnPlayerUpdateEx(i);
  9.                     gPlayerLogged[i] = 0;
  10.                     if (playerid != i) Kick(i);
  11.                 }
  12.             }
  13.             SendClientMessage(playerid, COR_ESPECIAL, "* Todos os jogadores removidos, reiniciando.");
  14.             SendRconCommand("gmx");
  15.         }
  16.         else return SendClientMessage(playerid, COLOR_LIGHTRED, "Sem permissão.");
  17.         return 1;
  18.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement