Why don't you test it by yourself?
As you said:
Quote:
|
My question: is it possible to block victim's death if the damage inflicted to the victim is greater then the victim's hp?
|
My code doesn't worked because I was returning
HAM_IGNORED, it should be
HAM_SUPERCEDE
PHP Code:
if(!(floatround(fDamage) > get_user_health(victim)))
->
PHP Code:
if(floatround(fDamage) > get_user_health(victim))
return HAM_SUPERCEDE
And
PHP Code:
SetHamParamFloat(3, 100.0)
It will take 100 Health Pack, not Armor Pack. I think here you must use
set_user_armor()
__________________