[FilterScript] [FS] Money Cheat Detector || Stop money cheaters!
#8

Quote:
Originally Posted by Snoooopy
Nice work
When it warns you/administrator/xxx that player cheats ?
It doesn't. It just set players money to real money that player should have, and deletes money that is cheated.
You can inform admin about cheating by editing moneyhack.inc

Just change this
pawn Code:
public MoneyCheck(playerid)
{
  if(current_amount[playerid] != GetPlayerMoney(playerid)){
    ResetPlayerMoney(playerid);
    GivePlayerMoney(playerid,current_amount[playerid]);
  }
  return 1;
}
To this (It will send a report to logged RCON administrators)

pawn Code:
public MoneyCheck(playerid)
{
  if(current_amount[playerid] != GetPlayerMoney(playerid)){
    new string[128], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pName,sizeof(pName));
   
    format(string,sizeof(string),"*** %s has cheated $%d. His money has been removed.",pName,GetPlayerMoney(playerid));
   
    for(new i=0;i<=MAX_PLAYERS;i++){
      if(IsPlayerAdmin(i))
        SendClientMessage(i,COLOR_ENTER_YOUR_OWN,string);
    }

    ResetPlayerMoney(playerid);
    GivePlayerMoney(playerid,current_amount[playerid]);
  }
  return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)