Player's Money Is Their Score?
#1

How do I make it so that a player's money is their score?
I have searched, but cant find anything, Thanks!
Reply
#2

From the lvdm ....
Say thanks to Jax

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);
            }
        }
    }
}
Reply
#3

Quote:
Originally Posted by » sTeVe
From the lvdm ....
Say thanks to Jax

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);
            }
        }
    }
}
LOL, I'll say thanks to Jax, and Thanks to you too.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)