Player death bug
#1

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

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

SetPlayerHealth( iPlayerID, 0.0 ); under OnPlayerDeath
Reply
#4

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

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

At OnPlayerUpdate this should fix that.

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)