24.03.2013, 18:01
Did try to make this 2 command only rcon but failed can someone make that for me?
/gmx
/restart
/gmx
Код:
CMD:gmx(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] < 99999) { SendClientMessageEx(playerid, COLOR_GRAD2, "You are not authorized to use this command."); return 1; } SetTimer( "Maintenance", 50000, false ); SendClientMessageToAll(COLOR_LIGHTBLUE, "* The Server Will Be Going For Server Maintenance In 50Seconds."); foreach(Player, i) { GameTextForPlayer(i, "~y~Scheduled Maintenance 50Seconds", 5000, 3); } return 1; }
Код:
CMD:restart(playerid, params[]) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 1337) { restarting = 1; GameModeInitExitFunc(); } else { SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !"); } } return 1; }