SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 22/03/2010, 09:54 PM   #1
Luka P.
High-roller
 
Join Date: Feb 2009
Posts: 1,428
Reputation: 13
Default [FS] Money Cheat Detector || Stop money cheaters!

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)

Last edited by Luka P.; 03/09/2010 at 09:30 PM.
Luka P. is offline   Reply With Quote
Old 22/03/2010, 10:23 PM   #2
DarkPower
Gangsta
 
DarkPower's Avatar
 
Join Date: Feb 2010
Posts: 646
Reputation: 7
Default Re: [FS] Money Cheat Detector || Stop money cheaters!

why it must be "GivePlayerHealth"
DarkPower is offline   Reply With Quote
Old 22/03/2010, 10:58 PM   #3
Luka P.
High-roller
 
Join Date: Feb 2009
Posts: 1,428
Reputation: 13
Default Re: [FS] Money Cheat Detector || Stop money cheaters!

Quote:
Originally Posted by DarkPower
why it must be "GivePlayerHealth"
Oh sorry, my bad, I fixed it now.
It is GivePlayerMoney
Luka P. is offline   Reply With Quote
Old 22/03/2010, 11:11 PM   #4
XRVX
High-roller
 
Join Date: Aug 2009
Posts: 1,142
Reputation: 9
Default Re: [FS] Money Cheat Detector || Stop money cheaters!

looks good
nice worl
XRVX is offline   Reply With Quote
Old 23/03/2010, 02:27 PM   #5
Luka P.
High-roller
 
Join Date: Feb 2009
Posts: 1,428
Reputation: 13
Default Re: [FS] Money Cheat Detector || Stop money cheaters!

Quote:
Originally Posted by XRVX
looks good
nice worl
Thanks
Luka P. is offline   Reply With Quote
Old 23/03/2010, 02:52 PM   #6
77ther
Big Clucker
 
77ther's Avatar
 
Join Date: Mar 2009
Posts: 195
Reputation: 0
Default Re: [FS] Money Cheat Detector || Stop money cheaters!

Nice and easy FS that will help alot of servers, thank you!
77ther is offline   Reply With Quote
Old 23/03/2010, 03:07 PM   #7
Snoooopy
Big Clucker
 
Join Date: Jan 2010
Posts: 81
Reputation: 0
Default Re: [FS] Money Cheat Detector || Stop money cheaters!

Nice work
When it warns you/administrator/xxx that player cheats ?
Snoooopy is offline   Reply With Quote
Old 23/03/2010, 04:45 PM   #8
Luka P.
High-roller
 
Join Date: Feb 2009
Posts: 1,428
Reputation: 13
Default Re: [FS] Money Cheat Detector || Stop money cheaters!

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;
}
Luka P. is offline   Reply With Quote
Old 23/03/2010, 04:46 PM   #9
Snoooopy
Big Clucker
 
Join Date: Jan 2010
Posts: 81
Reputation: 0
Default Re: [FS] Money Cheat Detector || Stop money cheaters!

Ok , cool
Snoooopy is offline   Reply With Quote
Old 23/03/2010, 09:57 PM   #10
DeaD_MaN
Big Clucker
 
DeaD_MaN's Avatar
 
Join Date: Mar 2010
Posts: 136
Reputation: 0
Default Re: [FS] Money Cheat Detector || Stop money cheaters!

cooooooooooooooooooooooool!!!!!!!!!!!!!!!!!! BEST !
DeaD_MaN is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] Server-sided Money - Stop money hackers! NEW RELEASE(v6) x-cutter Includes 107 30/08/2011 08:56 PM
Anti Money Cheat The_Pain Help Archive 6 11/07/2010 09:42 PM
help | money anti cheat... _V1rTu4L_ Help Archive 5 23/05/2010 08:30 PM
Anti Money Cheat Mr187 Help Archive 1 28/02/2009 02:46 PM


All times are GMT. The time now is 08:34 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.