03.03.2014, 19:24
Код:
public OnRconCommand(cmd[]) { if(!strcmp(cmd,"restart")) { //restart server print("[DEINIT]Server will restart in 3 seconds"); for(new i;i < maxplayers;i++) TimePlayer(i); SetTimer("ExitServer",3000,false); } return 1; }
The TimePlayer Function is working(used before for timing out desynced players).
EDIT:What if I somehow crash the server when I want to restart? :P