14.02.2011, 20:40
heres a better working "restart" code that also informs all players on the server of the restart
Under Gamemodeinit
43200000 is 12 real hours. Which seems about right.
Код:
forward restart();
public restart()
{
for(new i=0; i <= MAX_PLAYERS; i++)
{
if ( IsPlayerConnected(i) )
{
GameTextForPlayer(i,"~w~Server is restarting! ~n~~y~-AutoRestart-",5000,5);
}
}
SendRconCommand("gmx");
return 1;
}
Код:
SetTimer("restart",43200000,1);

