24h = Restart
#6

Quote:
Originally Posted by [MTZ]H34DSh07z
Посмотреть сообщение
pawn Код:
forward restart();
pawn Код:
SetTimer("restart",86400000,0);//under ongamemodeinit
pawn Код:
public restart
{
      SendRconCommand("gmx");
      return 1;
}
You made a mistake:
pawn Код:
public restart
it should be:
pawn Код:
public restart()
And this:
pawn Код:
SetTimer("restart",86400000,0);//under ongamemodeinit
Should be:
pawn Код:
SetTimer("restart",86400000,1);//under ongamemodeinit
So that it would repeat every 24hrs.
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: 3 Guest(s)