SA-MP Forums Archive
Death - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Death (/showthread.php?tid=444413)



Death - Nick.D - 16.06.2013

I have script which utilizes OnPlayerTakeDamage to set a player's heath to 100 every time they take damage. However, this doesn't stop players from instantly dying when they fall from a great height. Is there any way to do this?

EDIT: I've resolved the issue on my own.


Re: Death - OrMisicL - 16.06.2013

OnPlayerTakeDamage gets called only when a player receives damage from another player, so u cant use it to stop him from dying when he falls from a great height,
about stopping him when dying like that, i dont think there is a way to do it (at least from what i know), unless samp adds a function to toggle player taking damage, u just have to handle it as suicide


Re: Death - Nick.D - 16.06.2013

Quote:
Originally Posted by OrMisicL
Посмотреть сообщение
OnPlayerTakeDamage gets called only when a player receives damage from another player, so u cant use it to stop him from dying when he falls from a great height,
about stopping him when dying like that, i dont think there is a way to do it (at least from what i know), unless samp adds a function to toggle player taking damage, u just have to handle it as suicide
Oh yes, I didn't think about that... thanks. :P
But I'm positive there's a way; I've seen it on other servers.