problem 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: problem calling OnPlayerDeath (
/showthread.php?tid=461873)
problem calling OnPlayerDeath -
recor - 03.09.2013
so yea this code sends a message like if the player suicided but doesn't show the killerid i.e (me)
shows killerid - blank.
pawn Код:
if(hp < 1.0)
{
SendClientMessage(i, -1, "Killed by a haze bomb.");
OnPlayerDeath(i, playerid, 47);
SpawnPlayer(i);
}
Respuesta: problem calling OnPlayerDeath -
recor - 04.09.2013
help
Re: problem calling OnPlayerDeath -
Tomer!.$ - 04.09.2013
I don't really get what you're trying to do here.
If someone has 0 hp he would already be dead by nature..