OnPlayerDeathBug? -
im - 17.07.2012
Hi.
I'm working on a RP gamemode (based on vortex roleplay 2) and I get a weird bug. Sometime when someone dies, onplayerdeath gets called, but the player doesn't die. He is left with 0HP and he can still move (but can't enter cars...).
I am using the fixes.inc include but I still get the bug for some players.
Any solutions?
Thanks!
Re: OnPlayerDeathBug? -
Kiets - 17.07.2012
I noticed it appeared for me in 0.3e-R2. And yeah, very annoying.
Re: OnPlayerDeathBug? -
IstuntmanI - 17.07.2012
Confirmed ... many of us saw this annoying bug, it should be fixed fast.
Re: OnPlayerDeathBug? -
Kar - 17.07.2012
ClearAnimations under OnPlayerDeath should fix it.
Re: OnPlayerDeathBug? -
FireCat - 17.07.2012
Quote:
Originally Posted by ******
Any known workaround?
|
Set his z axis to... +5 and then he slams against the floor and dies
(this is that death bug I was telling you about)
AW: OnPlayerDeathBug? -
FufLa - 17.07.2012
This only seems to happen here when a server uses gmx or crashes then restarts with people on it (only happens for the people on it then). It used to happen quite frequently when I tested something and used gmx to restart the server. Doesnt happen when I kick everyone on restart and hasnt happened for months now.
Re: OnPlayerDeathBug? -
Feel_Life - 17.07.2012
Look at use animations in OnPlayerUpdate.
it occurs because of ApplyAnimations after death player
Re: OnPlayerDeathBug? -
BlackBank - 17.07.2012
Quote:
Originally Posted by FireCat
Set his z axis to... +5 and then he slams against the floor and dies
(this is that death bug I was telling you about)
|
Just this.
If you have this bug, just jump of a building or something, if you hit the ground you will be respawned again.
Re: OnPlayerDeathBug? -
Kar - 17.07.2012
Quote:
Originally Posted by ******
Does "ClearAnimations" ACTUALLY solve this issue? fixes.inc already does that under "OnPlayerDeath" so it wouldn't need another fix for this.
|
Yup, and setting their pos +10 or w/e. I used it and it works.
But lemme try to say something about this issue, this seems like a client and sync bug. It only happens when CERTAIN things are done in your script, e.g a certain function that affects the client (that uses the playerid argument ofc). Trust me it has to be that because it just doesn't happen like that. It won't happen in a blank script, obviously. Something must be trigging this bug. IDK exactly WHAT causes it to happen, I doubt anyone knows because noone has really entirely tried to debug the issue.
Otherwise, clearanimations and setting their pos is the main fix ******.. though there is another part of this bug that needs you to set their health to -1
It's known around some parts of the SA-MP community that SetPlayerHealth(playerid, 0.0); WILL NOT KILL THE PLAYER, they will still be able to walk around. You must use -1(.0). I have no idea why but it happens and 0.0 doesn't kill players in my script.
That's all I know for now.
AW: OnPlayerDeathBug? -
FufLa - 17.07.2012
0.0 does kill players here and the bug only occurs when I restart the server with people on without kicking them first. Thats why I kick everyone on a server restart so they dont just reconnect. It hasnt occured since I kick the players on any server restart.