11.10.2009, 09:29
pawn Код:
// 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));
}
}
}