20.09.2009, 15:27
From the lvdm .... ![rolleyes](images/smilies/rolleyes.gif)
Say thanks to Jax![Cheesy](images/smilies/biggrin.png)
![rolleyes](images/smilies/rolleyes.gif)
Say thanks to Jax
![Cheesy](images/smilies/biggrin.png)
pawn Код:
forward MoneyGrubScoreUpdate();
new CashScoreOld;
public MoneyGrubScoreUpdate()
{
new CashScore;
new name[MAX_PLAYER_NAME];
//new string[256];
for(new i=0; i<MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
GetPlayerName(i, name, sizeof(name));
CashScore = GetPlayerMoney(i);
SetPlayerScore(i, CashScore);
if (CashScore > CashScoreOld)
{
CashScoreOld = CashScore;
//format(string, sizeof(string), "$$$ %s is now in the lead $$$", name);
//SendClientMessageToAll(COLOR_YELLOW, string);
}
}
}
}