SA-MP Forums Archive
Death Delay - 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: Death Delay (/showthread.php?tid=383272)



SOLVED: Death Delay - xDeadlyBoy - 06.10.2012

hi,
whenever a player dies on my game mode, there is a delay of 2 seconds before the character lies on the ground and respawns.
this isn't happening in other game modes on the same server.
i've tried to delete some of the code (OnPlayerDeath, OnGameModeInit and etc.), and it didn't help.
does it happens to anyone else? what could be the reason for this problem?


Re: Death Delay - CoDeZ - 06.10.2012

I had the same problem when i had lots of IF Statments under onplayerdeath.
Try to optimize everything under onplayerdeath.


Re: Death Delay - xDeadlyBoy - 06.10.2012

i've tried deleting all of the OnPlayerDeath callback, and it didn't help.
edit: i've solved it, i was using an include called "fixes", and i've canceled the FIX_OnPlayerDeath.