24h = Restart
#9

heres a better working "restart" code that also informs all players on the server of the restart

Код:
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;
}
Under Gamemodeinit
Код:
 SetTimer("restart",43200000,1);
43200000 is 12 real hours. Which seems about right.
Reply


Messages In This Thread
24h = Restart - by Typhome - 14.08.2009, 22:04
Re: 24h = Restart - by Typhome - 14.08.2009, 22:10
Re: 24h = Restart - by iceZone - 16.01.2011, 12:37
Re: 24h = Restart - by WillyP - 16.01.2011, 12:39
Re: 24h = Restart - by iceZone - 16.01.2011, 12:44
Re: 24h = Restart - by WillyP - 16.01.2011, 12:45
Re: 24h = Restart - by iceZone - 16.01.2011, 12:45
Re: 24h = Restart - by WillyP - 16.01.2011, 12:46
Re: 24h = Restart - by chaosnz - 14.02.2011, 20:40
Re: 24h = Restart - by Unknown123 - 14.02.2011, 21:49

Forum Jump:


Users browsing this thread: 2 Guest(s)