29.03.2012, 17:53
(
Последний раз редактировалось park4bmx; 01.04.2012 в 22:42.
)
pawn Код:
new ScoreTimer[MAX_PLAYERS];
ScoreTimer[playerid] = SetTimerEx("AddScore", 3600000, true, "i", playerid);//add the timer to OnPlayerConnect
forward AddScore(playerid);
public AddScore(playerid)
{
SetPlayerScore(playerid,GetPlayerScore(playerid)+100);
//adds +100 ever 1hr
}
/*when the player leave the server kill the timer !
Go on "OnPlayerDisconnect" adn add this */
KillTimer(ScoreTimer[playerid]);
Post bellow is right it the timer need to grt killed after the player leaves no dies !
God knows what I was thinking

