Posts: 213
Threads: 16
Joined: Mar 2012
Reputation:
0
17.07.2012, 10:21
(
Последний раз редактировалось im; 17.08.2017 в 11:05.
)
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!
Posts: 106
Threads: 9
Joined: Oct 2011
Reputation:
0
I noticed it appeared for me in 0.3e-R2. And yeah, very annoying.
Posts: 1,801
Threads: 27
Joined: Mar 2009
Reputation:
0
Confirmed ... many of us saw this annoying bug, it should be fixed fast.
Posts: 2,938
Threads: 162
Joined: May 2010
ClearAnimations under OnPlayerDeath should fix it.
Posts: 187
Threads: 3
Joined: Sep 2009
Reputation:
0
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.
Posts: 28
Threads: 5
Joined: Aug 2010
Reputation:
0
Look at use animations in OnPlayerUpdate.
it occurs because of ApplyAnimations after death player
Posts: 2,938
Threads: 162
Joined: May 2010
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.
Posts: 187
Threads: 3
Joined: Sep 2009
Reputation:
0
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.