Including a killerid with SetPlayerHealth? - 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: Including a killerid with SetPlayerHealth? (
/showthread.php?tid=435972)
Including a killerid with SetPlayerHealth? -
JamesS - 09.05.2013
Is it possible?
Re: Including a killerid with SetPlayerHealth? -
newbienoob - 09.05.2013
In OnPlayerDeath? Yes
Re: Including a killerid with SetPlayerHealth? -
MrTinder - 09.05.2013
Only in "OnPlayerDeath(playerid, killerid, reason)" see how:
pawn Код:
OnPlayerDeath(playerid, killerid, reason)
{
SetPlayerHealth(killerid, 100);
return 1;
}
Re: Including a killerid with SetPlayerHealth? -
JamesS - 09.05.2013
Nah, when I use SetPlayerHealth(playerid, 0). Including a usseid, my mistake.
Re: Including a killerid with SetPlayerHealth? -
JamesS - 09.05.2013
Isn't there a way to still succeed in doing so?