OnPlayerDeath
#1

Is OnPlayerDeath get called when i use setplayerhealth?
Reply
#2

It get called only when the player health is '0'.
Reply
#3

If you set it to '0.0', then yes.
Reply
#4

Its called when the player dies, what corresponds to a player Health value of: health<=0.00
Reply
#5

You call player death by

SetPlayerHealth(playerid, 0.0);
Reply
#6

Quote:
Originally Posted by FuriousRoleplay
Посмотреть сообщение
You call player death by

SetPlayerHealth(playerid, 0.0);
Please note that this can also be a negative value.
Reply
#7

It doesn't matter, whenever player is dead (health:0) OnPlayerDeath gets called.
Reply
#8

Thank you
Reply


Forum Jump:


Users browsing this thread: