SA-MP Forums Archive
[Ajuda] Score - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Score (/showthread.php?tid=402356)



Score - Nikeeziin_Map - 26.12.2012

aee pessoal To com uma Duvida ! No Meu Server a Quantidade de Score que o player tem й a mesma do Dinheiro !
Por Exemplo Se ele Tiver 100 Reais ; Ele tera 100 de Score ! Como faзo para tirar isso ?


Re: Score - Jumper. - 26.12.2012

mano, da um ctrl +f e procura SetPlayerScore, dai vc apaga o que tiver


Re: Score - Gleisson_. - 26.12.2012

Por acaso nгo й o BMT ?!

Se for, ele usa MoneyGrubScore.

Deverб apagar as linhas:

pawn Код:
new CashScoreOld;
pawn Код:
forward MoneyGrubScoreUpdate();
pawn Код:
SetTimer("MoneyGrubScoreUpdate", 1000, 1);
pawn Код:
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(0xFFFF00FF, string);
            }
        }
    }
}