SA-MP Forums Archive
Auto setscore for player - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Auto setscore for player (/showthread.php?tid=245257)



Auto setscore for player - [M.A]Angel[M.A] - 30.03.2011

Hello,

I saw some servers players in get +1 score every 1 min so this is auto setscore i think Timer(..) but i can't make like it , can anyone help me please?

Example

Player Id 1 join ( every 1 min set +1 score).


Re: Auto setscore for player - swieberdevos - 30.03.2011

Hope it helps you
pawn Код:
public OnPlayerConnect(playerid)
{
    SetTimer("AddScoreEachMinute",60*1000, true);
}

forward AddScoreEachMinute();
public AddScoreEachMinute()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    SetPlayerScore(i,GetPlayerScore(i)+1);
    }
}



Re: Auto setscore for player - [M.A]Angel[M.A] - 30.03.2011

Thanks! i will try.


Re: Auto setscore for player - [M.A]Angel[M.A] - 30.03.2011

Oh , i try but failed , maybe help?