14.02.2010, 13:36
@above: The score limit is > 65k.
@topicAuthor: Look at this, you will learn from it.
Enjoy, if you have any questions, feel free to ask again (the above is untested)
@topicAuthor: Look at this, you will learn from it.
pawn Код:
forward MoneyTimer(playerid, amount); //this can go anywhere
public MoneyTimer(playerid) //this can go anywhere, as long as it isnt in a callback
{
SetPlayerScore(playerid, GetPlayerMoney(playerid));
}
//under OnGameModeInit
SetTimer("MoneyTimer", 10000, true); //this sets a timer for the mentioned public function to set the score to the players money amount