Players do not die properly when on fire
#1

I noticed a bug, that i did not find here, slap me if it is also known

If a player is burning (standing in fire or just burning himself) and you set his health, he does not die. He just plays the death anim again and again until he stops burning - then he keeps dead /dies correctly with calling OnPlayerDeath and zooming out.
Has to be a samp bug, releated to SetPlayerHealth of firesync or so.

I can create a video on request
Reply
#2

You don't need SetPlayerHealth in OnPlayerDeath.
OnPlayerDeath is WHEN they die, so their health is already to 0.
Reply
#3

Eh, I know.
Example: I create a explosion, someone walks through so he burns. Then i set his health to 0, but he does not die. OnPlayerDeath is NOT CALLED as long as he burns, and he just plays the death animation again and again.
Reply
#4

Actually, from what i've seen, OnPlayerDeath gets called, but it doesn't function the way it should.
Reply
#5

You said that YOU are putting their health to 0?
Reply
#6

Its the fire. The fire still stays on the person even if you don't set their HP. This only happens when the person has low health and the fire just keeps playing and playing until the fire is gone. This bug has already been discovered/reported. /slap Mauzen
Reply
#7

pawn Code:
SetPlayerHealth(playerid, 100.0); // AT THE END OF ONPLAYERDEATH
// Should fix it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)