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



Calling OnPlayerDeath - MR,Mr - 24.01.2012

Can this be done and will it work?

pawn Код:
new Float:health;
GetPlayerHealth(i,health);
if(health <= 10)
{
    OnPlayerDeath(i,INVALID_PLAYER_ID,51);
}
What I want to use it for is irrelevant, but can I use OnPlayerDeath like this?


Re: Calling OnPlayerDeath - Tanush123 - 24.01.2012

What are you trying to actually make?


Re: Calling OnPlayerDeath - MR,Mr - 24.01.2012

Quote:
Originally Posted by Tanush123
Посмотреть сообщение
What are you trying to actually make?
I get a bug some times where players are alive, but dead. And I want them to die when this happens. Their health is 0, but they don't actually die till they have fallen somewhere. Setting their health to 0 again doesn't work, and nor does exploding them.


Re: Calling OnPlayerDeath - Tanush123 - 24.01.2012

im sure you mean death bug, try this


Re: Calling OnPlayerDeath - MR,Mr - 24.01.2012

Thanks a lot mate.