SA-MP Forums Archive
Score - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Score (/showthread.php?tid=362454)



Score - [M.A]Angel[M.A] - 24.07.2012

Hello,
I need script that every 1 min setallthe players +1 score how can this be? it can be at timer?


Re: Score - Kindred - 24.07.2012

pawn Код:
forward RaiseScoreByOne(playerid);

//Under OnPlayerConnect, or wherever you log in
SetTimerEx("RaiseScoreByOne", 60000, true, "d", playerid);

public RaiseScoreByOne(playerid)
{
    SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
    return 1;
}
Post in the correct section next time. There is a thread entitled "Script Request Thread" for a reason.