Auto setscore for player
#1

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).
Reply
#2

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);
    }
}
Reply
#3

Thanks! i will try.
Reply
#4

Oh , i try but failed , maybe help?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)