Posts: 31
Threads: 6
Joined: Jun 2012
Reputation:
0
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.
Posts: 99
Threads: 1
Joined: Mar 2013
Reputation:
0
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