#1

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

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
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)