23.04.2011, 01:02
My code for GMX is
Code:
if(strcmp(cmd, "/restart", true) == 0) { if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 1330) { format(string, sizeof(string), " An Admin has issued a server restart, this will take place in 10 seconds, please relog.", sendername); SendClientMessageToAll(COLOR_LIGHTBLUE, string); format(string, sizeof(string), "** Warning: Not logging could cause you to spawn in random locations!", sendername); SendClientMessageToAll(COLOR_YELLOW, string); RestartTime = SetTimer("Restart", 10000, 0); } else { SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !"); } } return 1;