31.01.2011, 18:31
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;
}