Money anti-cheat problem. [REP+]
#1

Trying to make a money anticheat.

pawn Код:
public GetMoney()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            new money = GetPlayerMoney(i);
            if(PlayerInfo[i][pCash] > money) // if the server money are more than the server given money
            {
                ResetPlayerMoney(i);
                GivePlayerMoney(i, PlayerInfo[i][pCash]);
            }
            else if(PlayerInfo[i][pCash] < money) // if the game money are lower than the server-given money
            {
                ResetPlayerMoney(i);
                GivePlayerMoney(i, PlayerInfo[i][pCash]);
            }
        }
    }
    return ;
}
But in-game the cash variable exists, but the money doesn't show in the hud.
Any ideas?
Reply


Messages In This Thread
Money anti-cheat problem. [REP+] - by GangsTa_ - 28.10.2011, 20:47
Re: Money anti-cheat problem. [REP+] - by [MWR]Blood - 28.10.2011, 20:53
Re: Money anti-cheat problem. [REP+] - by GangsTa_ - 28.10.2011, 20:57
Re: Money anti-cheat problem. [REP+] - by [MWR]Blood - 28.10.2011, 21:02
Re: Money anti-cheat problem. [REP+] - by GangsTa_ - 28.10.2011, 21:06

Forum Jump:


Users browsing this thread: 1 Guest(s)