Auto Restart
#6

NO, do NOT use that god damnit OnPlayerUpdate is called like god knows how many times per second.

pawn Код:
SetTimer("AutoRestart",30000,0);

forward AutoRestart();
public AutoRestart()
{
    new h,m,s;
    gettime(h,m,s);
    if(h == 23 && m == 59)
    {  
        print("Auto Restarting..");
        SendRconCommand("gmx");
    }
    return 1;
}
Reply


Messages In This Thread
Auto Restart - by IvanCroatiaCopy - 29.01.2011, 19:40
Re: Auto Restart - by legodude - 29.01.2011, 20:22
Re: Auto Restart - by alpha500delta - 29.01.2011, 20:35
Re: Auto Restart - by hipy - 31.01.2011, 08:02
Re: Auto Restart - by sergio_xd - 31.01.2011, 13:27
Re: Auto Restart - by Mike Garber - 31.01.2011, 18:31

Forum Jump:


Users browsing this thread: 1 Guest(s)