Custom damages giving health/armour
#1

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.
pawn Код:
/* Removed */
I do not see that anything is wrong, and how it gives armour when the player does not have armour already.
Reply
#2

GetPlayerArmour and GetPlayerHealth functions need its values to be passed by reference.
Reply
#3

Fixed, thanks Riddick, i misunderstood the use of detecting player armour and health.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)