Dying to take punches
#3

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.
Reply


Messages In This Thread
Dying to take punches - by JoshNudock - 23.06.2015, 21:47
Re: Dying to take punches - by Inn0cent - 23.06.2015, 21:57
Re: Dying to take punches - by Jonny5 - 23.06.2015, 21:58
Re: Dying to take punches - by Roberto80 - 23.06.2015, 22:03
Re: Dying to take punches - by JoshNudock - 23.06.2015, 22:15
Re: Dying to take punches - by Jonny5 - 23.06.2015, 22:16
Re : Dying to take punches - by KillerDVX - 24.06.2015, 04:14

Forum Jump:


Users browsing this thread: 2 Guest(s)