SA-MP Forums Archive
[Script Help] Killing After Death - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Script Help] Killing After Death (/showthread.php?tid=619988)



[Script Help] Killing After Death - RobinPotter - 24.10.2016

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.


Re: [Script Help] Killing After Death - ThatFag - 24.10.2016

Код:
 ClearAnimations(playerid);
Put this under onplayerdeath and the problem will be gonne


Re: [Script Help] Killing After Death - RobinPotter - 24.10.2016

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?


Re: [Script Help] Killing After Death - ThatFag - 24.10.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


Re: [Script Help] Killing After Death - RobinPotter - 24.10.2016

Thank you very much again for your help.

Topic can be locked or archived.