Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

PayDay/Level Up help

$
0
0
So basically, im trying to make a simple payday every 1 hour. The payday works fine, but i want to add level up too, but it's not working, here is my code:

Code:

forward payday();
public payday()
{
    for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i))
    {
        GameTextForPlayer(i, "PAYDAY", 1000, 1);
        GivePlayerMoney(i, 1000); // You can change the ammount of money.
        SetPlayerScore(i, +1);
    }
    return 1;
}

What should i do with SetPlayerScore? I want to make it every 1 hour +1 score.

PS: This is the Timer code

Code:

SetTimer("payday", 360000, 1);

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>