Money Hacking e.t.c.
#3

Code:
new LastMoney[MAX_PLAYERS];
//OnGameModeInit
Code:
SetTimer("AntiMoneyCheat", 1000, 1);

//OnPlayerConnect(playerid)
Code:
LastMoney[playerid] = 0;
Code:
forward AntiMoneyCheat();
public AntiMoneyCheat()
{
  for(new i; i<MAX_PLAYERS; i++)
  {
    if(IsPlayerConnected(i))
    { 
      if(LastMoney[i] > 0)
      {
        if(GetPlayerMoney(i) - LastMoney[i] > 500)
        {
          SendClientMessage(i, 0xFF0000AA, "Money Cheater");
          Ban(i);
        }
      }
      LastMoney[i] = GetPlayerMoney(i);
    }
  }
}
Reply


Messages In This Thread
Money Hacking e.t.c. - by Martin_Smith - 22.02.2009, 20:52
Re: Money Hacking e.t.c. - by Martin_Smith - 22.02.2009, 20:58
Re: Money Hacking e.t.c. - by Sandra18[NL] - 22.02.2009, 20:58
Re: Money Hacking e.t.c. - by Martin_Smith - 22.02.2009, 21:04
Re: Money Hacking e.t.c. - by Sandra18[NL] - 22.02.2009, 21:09
Re: Money Hacking e.t.c. - by Martin_Smith - 22.02.2009, 21:19
Re: Money Hacking e.t.c. - by Sandra18[NL] - 22.02.2009, 21:21
Re: Money Hacking e.t.c. - by dowster - 07.07.2011, 23:28
Re: Money Hacking e.t.c. - by cessil - 08.07.2011, 00:11

Forum Jump:


Users browsing this thread: 1 Guest(s)