SA-MP Forums Archive
OnPlayerDeath big problem - 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: OnPlayerDeath big problem (/showthread.php?tid=640085)



OnPlayerDeath big problem - RedGun2015 - 27.08.2017

Hello, i have a problem with OnPlayerDeath, when a player is stand by in some vw / interior different then killerid for example, when they are meet for ex, and the playerid is AFK and killerid try to kill him, when playerid die, OnPlayerDeath is not called for playerid (happend when playerid is AFK). I don't know why.

And i have a code that prevent that for happening

Something like this in OnPlayerGiveDamage https://pastebin.com/2Aznm7EB

But when this bug its not happend, the OnPlayerDeath is called twice, and i don't know how to prevent this for happening..

Can someone help me?

A short video here (sorry for lang. in video): https://www.youtube.com/watch?v=LkDXAIyCaRk


Re: OnPlayerDeath big problem - RedGun2015 - 28.08.2017

bump ?


Re: OnPlayerDeath big problem - thegamer355 - 28.08.2017

The SA-MP syncing for a player is stopped aswell when a player is afk.


Re: OnPlayerDeath big problem - RedGun2015 - 28.08.2017

solved


Re: OnPlayerDeath big problem - 10MIN - 28.08.2017

@RedGun instead of "solved" say how you solved it... (foreign language: la fel ti-am zis si pe sectiunea de romana)