07.08.2012, 21:27
You can use it like this:
pawn Код:
forward Update(); // place this on top of your script
SetTimer("Update", 600000*6, true); // 60 minutes if I'm correct, put it under your OnGameModeInit
public Update() // place this somewhere in your script
{
for(new i=0;i<MAX_PLAYERS<i++) // goes through all players
{
Playerinfo[i][leveldate] += 1; // increases the leveldate variable by 1
if(PlayerInfo[i][leveldate] == 9) // if leveldate is 9
{
PlayerInfo[i][score] += 1; // increase player's score by 1
SetPlayerScore(i, PlayerInfo[i][score]); // set player's score to a new value
}
}
}