[Include] (sHA) Anti Health And Armour Hack
#1

Anti Health And Armour Hack

HIGHLY RECOMMENDED TO UPDATE TO V1.2

Код:
This include has been tested several times to detect any false detection but so far it seems fine.

If you find any bug, report it here.
Introduction:
This include is meant to detect players using health/armour hack, this includes checks for several things which when we do GTA SA sets the health, for example: Using vending machine, falling out of car and loosing health (Thanks to RougeDrifter for reminding me this)

Mechanism:
When players use health or armour hack, they set their health without calling the SetPlayerHealth/SetPlayerArmour callback, so we can update the variables with the health/armour everytime the script updates their health/armour while doing several checks for the detection.

Usage:
Two callbacks are provided for this include to give users the full control of this include.
THIS INCLUDE MUST BE INCLUDED IN ALL FILTERSCRIPTS!
Код:
OnPlayerHealthHack(playerid, Float:original, Float:anticheat)
OnPlayerArmourHack(playerid, Float:original, Float:anticheat)
Changelog:
Код:
V1.1
- Player to player damage handled in OnPlayerGiveDamage callback. (Thanks to Gammix to explain the OPTD case.)
- Self damage handled in OnPlayerTakeDamage.

V1.2
- Minor code improvements.
- Spawn check added and removed immunity from OnPlayerDeath as the spawn check will do the job.
- The health and armour has been set to 99, so if a player has 100.0 health/armour, he is either cheating or desynced. 
^ NOTE: Do not kick at sight for 100.0 health, I recommend to check if the player is desycned first and make the player timeout for this if he is desynced.
 (Yes vending machines max health to be given is also set to 99 now.)

- If health isn't set on Spawn, it'll auto set to 99.0, so that variable gets set to avoid false detection of 0.0 health

V1.3
- Fixed the case when player stops spectating, his health auto sets to 100 and anti-cheat detects him as a cheater.

V1.4
-  Fixed the case where player gets damage when he is afk and when he comes back he is detected as cheater.
-  Little optimization in the health and armour detection.
Comments:
I really thank RogueDrifter for his anti-cheat tips topic and all the help provided by him in making this include to work perfectly, without the checks provided by him it could have given false detections. But now it's perfectly fine, and more over thanks to his Immunity trick to avoid players having high ping to be detected as hackers.

Download:
GitHub
Pastebin
Attachment

(Psst: Yes I've taken permission from RogueDrifter to copy his thread style.)
Reply


Messages In This Thread
(sHA) Anti Health And Armour Hack - by StrikerZ - 23.02.2018, 12:34
Re: (sHA) Anti Health And Armour Hack - by RogueDrifter - 23.02.2018, 12:36
Re: (sHA) Anti Health And Armour Hack - by StrikerZ - 23.02.2018, 12:37
Re: (sHA) Anti Health And Armour Hack - by iKarim - 23.02.2018, 12:56
Re: (sHA) Anti Health And Armour Hack - by RogueDrifter - 23.02.2018, 12:58
Re: (sHA) Anti Health And Armour Hack - by iKarim - 23.02.2018, 13:06
Re: (sHA) Anti Health And Armour Hack - by RogueDrifter - 23.02.2018, 13:10
Re: (sHA) Anti Health And Armour Hack - by Gammix - 23.02.2018, 13:30
Re: (sHA) Anti Health And Armour Hack - by iKarim - 23.02.2018, 13:30
Re: (sHA) Anti Health And Armour Hack - by N0FeaR - 23.02.2018, 16:09
Re: (sHA) Anti Health And Armour Hack - by StrikerZ - 24.02.2018, 06:09
Re: (sHA) Anti Health And Armour Hack - by StrikerZ - 25.02.2018, 09:51
Re: (sHA) Anti Health And Armour Hack - by StrikerZ - 02.03.2018, 05:00

Forum Jump:


Users browsing this thread: 2 Guest(s)