death message [help][solved]
#1

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);
    }
Reply
#2

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
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)