Money bug?
#5

This is the line that causes the money to go back:
Anything wrong with it?
PHP код:
public UpdateMoney()
{
    for(new 
i=0i<MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
        {
            if(
gPlayerLogged[i])
            {
                 if(
GetPlayerCash(i) != GetPlayerMoney(i))
                 {
                      new 
hack GetPlayerMoney(i) - GetPlayerCash(i);
                      if(
hack >= 5000)
                      {
                          new 
string[128];
                        
format(stringsizeof(string), "[WARNING:] %s (ID:%d) tried to spawn $%d - This could be a money cheat.",GetPlayerNameEx(i),ihack);
                        
HackLog(string);
                      }
                      
ResetMoneyBar(i);//Resets the money in the original moneybar, Do not remove!
                    
UpdateMoneyBar(i,PlayerInfo[i][pCash]);//Sets the money in the moneybar to the serverside cash, Do not remove!
                
}
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
Money bug? - by remyguys - 25.11.2011, 17:44
Re: Money bug? - by LZLo - 25.11.2011, 17:49
Re: Money bug? - by remyguys - 25.11.2011, 18:20
Re: Money bug? - by IceCube! - 25.11.2011, 18:25
Re: Money bug? - by remyguys - 25.11.2011, 19:16
Re: Money bug? - by BlackWolf120 - 25.11.2011, 19:23
Re: Money bug? - by remyguys - 25.11.2011, 19:24
Re: Money bug? - by remyguys - 25.11.2011, 19:26
Re: Money bug? - by BlackWolf120 - 25.11.2011, 19:43
Re: Money bug? - by remyguys - 25.11.2011, 19:48

Forum Jump:


Users browsing this thread: 1 Guest(s)