SA-MP Forums Archive
Anti health hack - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Anti health hack (/showthread.php?tid=562635)



Anti health hack - Banditukas - 10.02.2015

Hi,

How to detect when player use sprunk machine and he get health because now if doing anti health hack need to detect when player get health from game but not cheating, to write it in variable.


Re: Anti health hack - Sime30 - 10.02.2015

I would simply remove sprunk machines, but in your case you could check if a player is in the range of a sprunk machine and if he pressed F.

You could also remove all the sprunk machines, use custom sprunk machines Filterscript and then you could easily write into your variable and there wouldn't be false alarms


Re: Anti health hack - Banditukas - 10.02.2015

It'is possible to make same sprunk machines with same animations and drinking? and where is that thing maked?


Re: Anti health hack - CalvinC - 10.02.2015

You could check with Sime's method, then use ApplyAnimation for the animation.


Re: Anti health hack - Sime30 - 10.02.2015

Or if you are lazy, use this https://sampforum.blast.hk/showthread.php?tid=553952

NOTE: You must change SetPlayerHealth/or add variables so your anticheat can work as intended. I believe you could do that by your own. If not, feel free to reply here. We will help you


Re: Anti health hack - Banditukas - 10.02.2015

I think better way is use removebuildingforplayer now. But it'is other way like sprunk vehicle player can get health?


Re: Anti health hack - RajatPawar - 10.02.2015

Through the script, the maximum health you should give should be 98 or 99. Always. Remove the sprunk machines and use a filterscript to add them, and again, change the maximum health to 98 or 99. When a player cheats and sets their own health to 100, you'll know. You just have to make sure that you don't give the player full health anywhere in the script.


Re: Anti health hack - CalvinC - 10.02.2015

Quote:
Originally Posted by RajatPawar
Посмотреть сообщение
Through the script, the maximum health you should give should be 98 or 99. Always. Remove the sprunk machines and use a filterscript to add them, and again, change the maximum health to 98 or 99. When a player cheats and sets their own health to 100, you'll know. You just have to make sure that you don't give the player full health anywhere in the script.
Setting the player's health to 99 is a bad way of detecting health cheats, as many of them do not regenerate your health, but will just stop you from loosing health.
There's way easier and better methods to detect players using health cheats.


Re: Anti health hack - Banditukas - 10.02.2015

I ask that thing that is only way get health player from gta is sprunk machines ?


Re: Anti health hack - CalvinC - 10.02.2015

Players can also get health from snack machines that are located around, or restaurants, such as Burger Shot, Cluckin' Bell and Pizza Stack.