16.07.2009, 16:37
how simple it is
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/restart", true)==0) { if(!IsPlayerAdmin(playerid) return 0; else{ SendClientMessageToAll(COLOR_WHITE,"Server is restarting in 3..."); SetTimer("OnGameModeExit",3000,0); } return 1; } return 0; }