Custom damages giving health/armour - 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: Custom damages giving health/armour (
/showthread.php?tid=555994)
Custom damages giving health/armour -
CalvinC - 09.01.2015
This is a script i have under OnPlayerTakeDamage, which should make the damage custom.
But when shot, you gain both armour and health, and almost impossible to die.
I do not see that anything is wrong, and how it gives armour when the player does not have armour already.
Re: Custom damages giving health/armour -
Riddick94 - 09.01.2015
GetPlayerArmour and GetPlayerHealth functions need its values to be passed by reference.
Re: Custom damages giving health/armour -
CalvinC - 09.01.2015
Fixed, thanks Riddick, i misunderstood the use of detecting player armour and health.