[FS] Money Cheat Detector || Stop money cheaters! -
Luka P. - 22.03.2010
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 GivePlayerMoney
2 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
below
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)
Re: [FS] Money Cheat Detector || Stop money cheaters! -
DarkPower - 22.03.2010
why it must be "GivePlayerHealth"
Re: [FS] Money Cheat Detector || Stop money cheaters! -
Luka P. - 22.03.2010
Quote:
Originally Posted by DarkPower
why it must be "GivePlayerHealth"
|
Oh sorry, my bad, I fixed it now.
It is GivePlayerMoney
Re: [FS] Money Cheat Detector || Stop money cheaters! -
XRVX - 22.03.2010
looks good
nice worl
Re: [FS] Money Cheat Detector || Stop money cheaters! -
Luka P. - 23.03.2010
Quote:
Originally Posted by XRVX
looks good
nice worl
|
Thanks
Re: [FS] Money Cheat Detector || Stop money cheaters! -
77ther - 23.03.2010
Nice and easy FS that will help alot of servers, thank you!
Re: [FS] Money Cheat Detector || Stop money cheaters! -
Snoooopy - 23.03.2010
Nice work
When it warns you/administrator/xxx that player cheats ?
Re: [FS] Money Cheat Detector || Stop money cheaters! -
Luka P. - 23.03.2010
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;
}
Re: [FS] Money Cheat Detector || Stop money cheaters! -
Snoooopy - 23.03.2010
Ok , cool
Re: [FS] Money Cheat Detector || Stop money cheaters! -
DeaD_MaN - 23.03.2010
cooooooooooooooooooooooool!!!!!!!!!!!!!!!!!! BEST !
Re: [FS] Money Cheat Detector || Stop money cheaters! -
Luka P. - 04.04.2010
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.
Re: [FS] Money Cheat Detector || Stop money cheaters! -
MaykoX - 04.04.2010
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.
Re: [FS] Money Cheat Detector || Stop money cheaters! -
ViruZZzZ_ChiLLL - 04.04.2010
Nice! d^.^b
Re: [FS] Money Cheat Detector || Stop money cheaters! -
Luka P. - 04.04.2010
Thanks
Re: [FS] Money Cheat Detector || Stop money cheaters! -
Scenario - 17.04.2010
I am enabling my hack system and I am going to test it out! I hope it works!!!
Re: [FS] Money Cheat Detector || Stop money cheaters! -
]V[ipeR - 08.07.2010
Hahaha one day this anty-cheat ban me because i do /setcash!!!hahaha.Cool very nice ths!