health hack and callbacks - 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: health hack and callbacks (
/showthread.php?tid=539680)
health hack and callbacks -
DavidBilla - 29.09.2014
I just have a small doubt
If a player has health hack enabled, does OnPlayerTakeDamage(for the hacker) and OnPlayerWeaponShot(for the shooter) get called?
Also does SetPlayerHealth and Createexplosion affect them?
Re: health hack and callbacks -
Stinged - 29.09.2014
OnPlayerTakeDamage:
It gets called, but doesn't give the player damage.
OnPlayerWeaponShot:
This always gets called when a player shoots a weapons.
SetPlayerHealth:
This works on hackers.
(Note: Some hacks automatically refill after SetPlayerHealth)
CreateExplosion:
If the player is health hacking, they wouldn't get any damage.
Re: health hack and callbacks -
DavidBilla - 29.09.2014
Well but the amount parameter parameter in Onplayertakedamage will hold the value of amount of damage the player has taken or the amount of damage the player should have taken?
Re: health hack and callbacks -
Stinged - 29.09.2014
The damage param holds the damage the player should take. (He already takes the damage if he is not health hacking)
Re: health hack and callbacks -
DavidBilla - 29.09.2014
Ok ty