DM - Bug?
#4

If you want to restart the server in 7 hours, here's the code to do that:


Under OnGameModeInit()
Код:
SetTimer("ServerRestart,25200000,0);
Then anywhere in the script:

Код:
forward ServerRestart();
public ServerRestart()
{
SendRconCommand("gmx");
return 1;
}
Under OnGameModeExit()

Код:
KillTimer(ServerRestart);
But seriously using GMX really screws up my server so if it creates a problem with text draws, then just remove the above code.
Reply


Messages In This Thread
DM - Bug? - by Crasher33 - 10.06.2010, 09:17
Re: DM - Bug? - by Babul - 10.06.2010, 09:56
Re: DM - Bug? - by Crasher33 - 10.06.2010, 10:02
Re: DM - Bug? - by DJDhan - 10.06.2010, 10:19

Forum Jump:


Users browsing this thread: 1 Guest(s)