01.07.2011, 00:21
pawn Код:
new time1;//On top of your script
forward Check();//On top of your script
public OnGameModeInit()//You know where it is.
{
new h;
SetTimer("Check", 30000,true);
gettime(h);
time1 = h;
}
public Check()//Somewhere in your script.
{
new h, m;
gettime(h,m);
if((h == tempo+1 || h == 23) && m == 0)
{
for(new i = 0; i < MAX_PLAYERS; i ++) { SetPlayerScore(i, GetPlayerScore(i) + 1); }
}
else { tempo = h; }
return 1;
}