SA-MP Forums Archive
Player death bug - 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: Player death bug (/showthread.php?tid=187121)



Player death bug - HigorMB - 01.11.2010

When the player dies, it remains alive with the HP bar flashing. It happens when the player dies by fire or weapons.

Is there any way to solve?

It happens often.


Re: Player death bug - Slice - 01.11.2010

This happens to me sometimes after the server was restarted, or after I timed out.


Re: Player death bug - Matthias_ - 01.11.2010

SetPlayerHealth( iPlayerID, 0.0 ); under OnPlayerDeath


Re: Player death bug - hpeter94 - 01.11.2010

it's not work... i also have this problem and we tryed everything...


Re: Player death bug - Kyle - 13.11.2010

This happens to me, Especcaily the fire one. Not so much the weapons.


Re: Player death bug - GaGlets(R) - 13.11.2010

At OnPlayerUpdate this should fix that.

pawn Код:
new Float:hp;
GetPlayerHealth(playerid,hp);
if(hp < 1) SetPlayerHealth(playerid,0.0); return 0;



Re: Player death bug - Karlip - 13.11.2010

Quote:
Originally Posted by GaGlets®
Посмотреть сообщение
At OnPlayerUpdate this should fix that.

pawn Код:
new Float:hp;
GetPlayerHealth(playerid,hp);
if(hp < 1) SetPlayerHealth(playerid,0.0); return 0;
I doubt it will as the player will have OnPlayerDeath called on them and other players will see him stand on one spot or lie on the ground.


Re: Player death bug - GaGlets(R) - 13.11.2010

i think not because it just will not show that player hp sets to 0 but onplayerdeath should be called rightly.