SA-MP Forums Archive
death message [help][solved] - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: death message [help][solved] (/showthread.php?tid=133192)



death message [help][solved] - Fonsie - 11.03.2010

Whats the reason id when someone commits suicide?


or how do i check if someone kills himself?

Like :
pawn Код:
if (reason == ???????????????)
    {
    new string[128];
    format(string,sizeof(string),"%s has committed suicide",dName);
    SendClientMessageToAll(GetPlayerColor(playerid),string);
    }
Found it::::
pawn Код:
if (reason == 255)
    {
    new string[128];
    format(string,sizeof(string),"%s has committed suicide",dName);
    SendClientMessageToAll(GetPlayerColor(playerid),string);
    }



Re: death message [help] - Fonsie - 11.03.2010

Quote:
Originally Posted by » ραωпsтαг «
Why don't you, instead of using a reason ID to check if the player commited suicide; check it on the /kill command. Since I'm guessing the /kill command is the only way a player can commit suicide?
I mean when someone dies and there is no killerid like he burnt himself or died jumping of a building


Re: death message [help] [Solved] - Fonsie - 11.03.2010

I found it while looking in the server rcon
it said :
Код:
[15:10:59] [death] Fonsie died 255
So i tried Reason 255 and it works!

Thanks anyway