10.06.2010, 10:19
If you want to restart the server in 7 hours, here's the code to do that:
Under OnGameModeInit()
Then anywhere in the script:
Under OnGameModeExit()
But seriously using GMX really screws up my server so if it creates a problem with text draws, then just remove the above code.
Under OnGameModeInit()
Код:
SetTimer("ServerRestart,25200000,0);
Код:
forward ServerRestart();
public ServerRestart()
{
SendRconCommand("gmx");
return 1;
}
Код:
KillTimer(ServerRestart);

