OnPlayerDeath Bug.
#1

Now, I may be way off but I've been having substantial difficulty with OnPlayerDeath.

It's very difficult to use, I think it's to do with animations.

I've tried timers, I've tried using more than one function, I've tried using more than one timer and I can't get this working at all, despite all of the prints returning.

https://sampforum.blast.hk/showthread.php?tid=506041

The issues I'm having:

PLAYER ANIMATIONS NOT SETTING
I've used timers, I've tried forcing it more than one time. Even tried clearing animations beforehand.

CREATING 3DTEXT LABEL ON DEATH.
It doesn't do this. I've tried using both dynamic and a normal one. Attaching to player etc.[/i]


I'm nearly convinced this is a bug, although I'm not quite sure how to word it.

I appreciate that I may be wrong, but I've tried getting several people to resolve this and debugging and trying different methods.

In honesty, all of the things shouldn't need a timer in OnPlayerDeath, I don't see why it should.
Reply
#2

Of course it's not going to play an animation the player is dead if you notice when you die on a slope (hill) the players angle will adjust to the slope it's handled internally by GTA if you also notice OnPlayerUpdate() stops when you die as well not a SAMP bug at all. As for the 3D Text label set it at the players position instead of attaching.
Reply
#3

Thank you for your reply.

However, How do you propose I do this?

Why can't I attach, out of curiosity?
Reply
#4

when a player is died his state will be changed to PLAYER_STATE_WASTED.

If you give the player health when die just you see the HUD update not stand up.

u can just use basic information like Position.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)