Posts: 553
Threads: 41
Joined: Aug 2010
Reputation:
0
I would like players to take no damage in certain and specific situations while keeping them vulnerable in others, so I have tried with putting return 0; in such conditions, but I keep taking damage. Is there any way to achieve what I want?
Posts: 2,325
Threads: 75
Joined: Feb 2012
Reputation:
0
Try putting, for each shot / disaster increase the life of the player!
xD
Posts: 553
Threads: 41
Joined: Aug 2010
Reputation:
0
Well actually I have already made a custom RestoreDamage function with the parameters (playerid, Float:amount), calling this function in OnPlayerTakeDamage under some conditions. However, what if the player has armour too? OnPlayerTakeDamage doesn't tell you if the damage has been made to the armour or to the player's health. If I could somehow make the damage null it would be much better.
Posts: 2,421
Threads: 52
Joined: Mar 2009
Reputation:
0
Nice i thought it was called after taking damage.