23.06.2015, 21:58
i would use
https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage
even though both are called after damage has been done
you could use https://sampwiki.blast.hk/wiki/SetPlayerHealth
to restore the old health.
use a var to hold the old health,
if damage is done by fist restore health
if done by other weapon then update the health var with new health value.
returning 0 will just stop any filterscripts from running that callback.
https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage
even though both are called after damage has been done
you could use https://sampwiki.blast.hk/wiki/SetPlayerHealth
to restore the old health.
use a var to hold the old health,
if damage is done by fist restore health
if done by other weapon then update the health var with new health value.
returning 0 will just stop any filterscripts from running that callback.