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

Money Cheat Detector (0.1)

Unsupported since 0.3b! Preparing a new version.
Hello, today I made anti money cheat, or so called money cheat detector. It is a replacement for current money and its server based, so that means every dollar that player receives goes through server process. So this is how it is actually works, you execute GivePlayerMoney2 command and server saves player money into variable (current money amount + given amount); Money Cheat Detector timer checks if GetPlayerMoney is equal to current amount that is in variable and if it is, then everything is alright, otherwise player has cheated.

How To Install
Firstly, copy moneyhack.inc to your pawno includes folder, and moneyhack.pwn to your filterscripts folder. Then open all of your scripts and replace and put
pawn Code:
#include <moneyhack>
below
pawn Code:
#include <a_samp>
It now should look like
pawn Code:
#include <a_samp>
#include <moneyhack>
Next thing you have to do is to replace GivePlayerMoney function with GivePlayerMoney2 function. Do it in all your scripts (gamemodes, filterscripts etc). After you do that, make sure you put
Code:
filterscripts moneyhack
in your server configuration file.

Bugs
Player may be suspected for money cheat if he do stunt and receive stunt bonus.

Downloads
Download (0.1)
Reply
#2

why it must be "GivePlayerHealth"
Reply
#3

Quote:
Originally Posted by DarkPower
why it must be "GivePlayerHealth"
Oh sorry, my bad, I fixed it now.
It is GivePlayerMoney
Reply
#4

looks good
nice worl
Reply
#5

Quote:
Originally Posted by XRVX
looks good
nice worl
Thanks
Reply
#6

Nice and easy FS that will help alot of servers, thank you!
Reply
#7

Nice work
When it warns you/administrator/xxx that player cheats ?
Reply
#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
#9

Ok , cool
Reply
#10

cooooooooooooooooooooooool!!!!!!!!!!!!!!!!!! BEST !
Reply
#11

Quote:
Originally Posted by Snoooopy
Ok , cool
Quote:
Originally Posted by DeaD_MaN
cooooooooooooooooooooooool!!!!!!!!!!!!!!!!!! BEST !
Thanks

I have updated script because of some wierd bug on player spawn (player get suspected for money cheat after choosing class and spawning).
Please download latest version now.
Reply
#12

Nice FS... I rather use include it's better but still good work. I'm not going to use it but a lot of people will I guess. Good release. Keep it comming.
Reply
#13

Nice! d^.^b
Reply
#14

Thanks
Reply
#15

I am enabling my hack system and I am going to test it out! I hope it works!!!
Reply
#16

Hahaha one day this anty-cheat ban me because i do /setcash!!!hahaha.Cool very nice ths!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)