Help with script
#3

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]);
edit
Post bellow is right it the timer need to grt killed after the player leaves no dies !
God knows what I was thinking
Reply


Messages In This Thread
Help with script - by boyan96 - 29.03.2012, 17:46
Re: Help with script - by Zhao - 29.03.2012, 17:50
Re: Help with script - by park4bmx - 29.03.2012, 17:53
Re: Help with script - by Twisted_Insane - 29.03.2012, 18:10

Forum Jump:


Users browsing this thread: 1 Guest(s)