[Include] [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts!
#1

Fallout's Anti Money Cheat System



Introduction:
I know that there are many anti money cheat systems on this forum, but they don't work on multiple scripts
like when you want to use it in your gamemode and also in some other filterscripts

(That is because you have integers in the include (the value of money for every player) and if it changes in your gamemode, than the value in the filterscript doesn't change.
this causes a difference between the integer and the money of the player -> kick/ban.
)

Because this include saves the integers in files, you don't have that problem and it's possible to include this into more than 1 script!


How to install:
- Put this inc in this folder: server\pawno\include\<here>
- Add this folder! server\scriptfiles\F_AntiCheat\
- Add #include <F_AntiCheat> to any script where you want to use it.
- Change all your money functions to F_GivePlayerMoney(playerid, amount); F_SetPlayerMoney(playerid, amount) or F_ResetPlayerMoney(playerid)
- Add F_OnInit(); under OnGameModeInit()
- Add F_OnPlayerConnect(playerid); under OnPlayerConnect()


Configuration:
- new AntiCheat = 1; //change to 0 if you want to disable AntiCheat
- #define MAX_DIFFERENCE 200 //maximum difference between the real money of the player, and the (maybe cheated). This can be useful when you didn't disable stunt bonuses.

- If you want to change the result of cheating (set to kick) to ban, than change this line:
Код:
Kick(i);
to
Код:
Ban(i);
Functions:
Код:
F_GivePlayerMoney(playerid, amount);
F_SetPlayerMoney(playerid, amount);
F_ResetPlayerMoney(playerid);
and anti money cheat of course!
How it works:
Let's say that A is the real money of the player (what you see in the upper right of your screen in samp)
and B is the value of money that the script saves.

When a player cheats, they change the value A to ... whatever they want
a cheater can't change the B value with his stupid hacks

So there will be a difference between value A and value B
That difference is what this filerscript detects.
When there is a difference between the 2 values, the player gets kicked/banned
(you can choose that yourself if he'll get kicked or banned)

Why do you need to change all functions from GivePlayerMoney to F_GivePlayerMoney:
When you would use the GivePlayerMoney function, it's impossible for the script to change value B
When you use GivePlayerMoney, the script changes the value B + gives you money (value A)

Credits:
Seif_ for his Seifensive include

Download:




Enjoy :P
Reply


Messages In This Thread
[INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by ғαιιοцт - 15.11.2008, 18:36
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by Toad - 15.11.2008, 19:09
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by ғαιιοцт - 15.11.2008, 19:13
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by ғαιιοцт - 15.11.2008, 19:26
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by whooper - 15.11.2008, 19:55
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by ғαιιοцт - 16.11.2008, 17:30
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by Danut - 21.11.2008, 20:48
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by ғαιιοцт - 23.11.2008, 09:29
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by silvan - 23.11.2008, 12:51
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by ғαιιοцт - 23.11.2008, 13:05
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by silvan - 23.11.2008, 13:27
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by ғαιιοцт - 23.11.2008, 13:35
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by silvan - 25.11.2008, 16:19
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by ғαιιοцт - 25.11.2008, 17:56
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by silvan - 25.11.2008, 18:17
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by ғαιιοцт - 25.11.2008, 19:43
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by silvan - 26.11.2008, 15:49
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by ғαιιοцт - 26.11.2008, 18:30
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by Norn - 26.11.2008, 19:58
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by ғαιιοцт - 27.11.2008, 14:48
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by vnusliveserver - 28.11.2008, 04:37
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by SuperS82 - 29.11.2008, 08:44
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by Karlip - 29.11.2008, 09:08
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by yom - 29.11.2008, 09:34
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by ғαιιοцт - 29.11.2008, 10:13
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by SuperS82 - 29.11.2008, 13:20
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by ғαιιοцт - 29.11.2008, 18:04
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by Loyal - 30.11.2008, 03:44
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by ғαιιοцт - 30.11.2008, 09:16
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by silvan - 02.12.2008, 22:10
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by ғαιιοцт - 08.06.2009, 20:56
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by [DFE] - 13.07.2009, 21:25
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by djuro_zero - 21.08.2009, 15:58
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by oOChazyBoyOo - 21.08.2009, 19:18
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by James_Alex - 24.08.2009, 11:24
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by addysnow1 - 28.08.2009, 10:13
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by Tr1viUm - 28.08.2009, 17:49
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by ғαιιοцт - 28.08.2009, 17:59
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by addysnow1 - 31.08.2009, 07:34
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by Shubham - 31.08.2009, 12:25
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by Tony_Montana - 31.08.2009, 13:09
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by Cracker - 01.09.2009, 01:37
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by MinZ|Spark - 26.02.2010, 00:31
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by Lobo - 11.03.2010, 04:26
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by Awerop - 12.04.2010, 02:50
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by Ben147 - 12.04.2010, 07:39
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by NiiRV4N4 - 02.05.2010, 19:26
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by Alxxie - 12.05.2010, 11:44
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by XRVX - 12.05.2010, 12:05
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by leapfish - 15.05.2010, 14:46
Re: [INC] Fallout's Anti Money Cheat System - inc works on multiple scripts! - by leapfish - 16.05.2010, 10:30

Forum Jump:


Users browsing this thread: 5 Guest(s)