11.10.2009, 09:01
Might this is a stupid question but i couldn't found it somewere, how i can set the player money as score?
// On top
forward ScoreUpdate();
// OnGameModeInit/FilterScriptInit
SetTimer("ScoreUpdate", 1000, 1);
// Outside of any callbacks/functions
public ScoreUpdate()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
SetPlayerScore(playerid, GetPlayerMoney(playerid));
}
}
}
Originally Posted by SpiderPork
pawn Код:
|
SetPlayerScore(i, GetPlayerMoney(i));