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: OnPlayerDeath (
/showthread.php?tid=550033)
OnPlayerDeath -
BoU3A - 10.12.2014
Is OnPlayerDeath get called when i use setplayerhealth?
Re: OnPlayerDeath -
Bingo - 10.12.2014
It get called only when the player health is '0'.
Re: OnPlayerDeath -
Schneider - 10.12.2014
If you set it to '0.0', then yes.
Re: OnPlayerDeath -
BlackWolf120 - 10.12.2014
Its called when the player dies, what corresponds to a player Health value of: health<=0.00
Re: OnPlayerDeath -
NGGMars - 10.12.2014
You call player death by
SetPlayerHealth(playerid, 0.0);
Re: OnPlayerDeath -
BlackWolf120 - 10.12.2014
Quote:
Originally Posted by FuriousRoleplay
You call player death by
SetPlayerHealth(playerid, 0.0);
|
Please note that this can also be a negative value.
Re: OnPlayerDeath -
Beckett - 10.12.2014
It doesn't matter, whenever player is dead (health:0) OnPlayerDeath gets called.
Re: OnPlayerDeath -
BoU3A - 11.12.2014
Thank you