SA-MP Forums Archive
Players do not die properly when on fire - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: Players do not die properly when on fire (/showthread.php?tid=182369)



Players do not die properly when on fire - Mauzen - 10.10.2010

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


Re: Players do not die properly when on fire - SampStunta - 10.10.2010

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


Re: Players do not die properly when on fire - Mauzen - 10.10.2010

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.


Re: Players do not die properly when on fire - Karlip - 10.10.2010

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


Re: Players do not die properly when on fire - SampStunta - 11.10.2010

You said that YOU are putting their health to 0?


Re: Players do not die properly when on fire - Retardedwolf - 11.10.2010

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


Re: Players do not die properly when on fire - [03]Garsino - 11.10.2010

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