Posts: 6
Threads: 1
Joined: Apr 2016
Reputation:
0
When a player die, sometimes somehow even if his health is 0, he can still shoot for like 2-3 seconds and then the OnPlayerDeath function is being called too late.
Any idea of how fixing this? like am I using old includes or something?
If you want more details about this issue, I will be giving more.
Posts: 383
Threads: 70
Joined: Feb 2016
Код:
ClearAnimations(playerid);
Put this under onplayerdeath and the problem will be gonne
Posts: 6
Threads: 1
Joined: Apr 2016
Reputation:
0
Thank you very much for your fast replay.
But can you tell me, what is the point of clearing animations since the player did not use any?
Posts: 383
Threads: 70
Joined: Feb 2016
Well the player dies (where he lays on the ground) then he gets up to the normal walk , so that will make the player (lay on ground again which is the first part of death) otherways it will still let him walk for some seconds and after he will fall.i had this bug b4 too
Posts: 6
Threads: 1
Joined: Apr 2016
Reputation:
0
Thank you very much again for your help.
Topic can be locked or archived.