12.10.2011, 09:58
pawn Код:
SetTimer("ScoreTimer", 3600000, true); // add this to OnGameModeInit, this will repeat every 1 hour (3600000 miliseconds in 1 hour (if im right))
// it will create a timer with name 'ScoreTimer'
forward ScoreTimer(); // forwarding the timer with name 'ScoreTimer'
public ScoreTimer() // the public of the timer, it will do this every hour
{
foreach(Player, i) // need the foreach include
{
SetPlayerScore(i, GetPlayerScore(i) + 1)
}
return 0;
}