Anti health hack
#1

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.
Reply
#2

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
Reply
#3

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

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

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
Reply
#6

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

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.
Reply
#8

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.
Reply
#9

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

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


Forum Jump:


Users browsing this thread: 4 Guest(s)