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:
What should i do with SetPlayerScore? I want to make it every 1 hour +1 score.
PS: This is the Timer 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;
}
PS: This is the Timer code
Code:
SetTimer("payday", 360000, 1);