SA-MP Forums Archive
death icons - 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: death icons (/showthread.php?tid=236176)



death icons - Amine_Mejrhirrou - 07.03.2011

hi all
can some one show me who to use the death icons ! if it's a FS or an includ or something like that ! pls help
this is the icons what i'm talking about



Re: death icons - Hashski - 07.03.2011

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid, playerid, reason);
    return 1;
}
Sure thats it, Source.


Re : death icons - Amine_Mejrhirrou - 07.03.2011

you mean that all i have to do is add
SendDeathMessage(killerid, playerid, reason);
in oneplaerdeath ?


Re: death icons - Hashski - 07.03.2011

Yeah, from what i just read on wiki


Re : death icons - Amine_Mejrhirrou - 07.03.2011

ok goona try it thanks


Re: death icons - Steven82 - 07.03.2011

You have to add it for each weapon...you can't just add them all, or it'll spam when someones dies.


Re: death icons - zero4000 - 24.11.2012

Rather then reopening a new post for this I will bring this one back alive. My question is this. I have already read wiki on how death messages are displayed. What I want is those icons when someone logs in and out rather then me adding a SendMessageToAll function. Im guessing it would be something close to this?

public OnPlayerConnect(playerid)
{
SendLoginMessage(playerid, reason);
}

As im looking at this I can tell it's completly wrong. And ****** hold to links for this -.- anyway any help earns Rep+ thanks in advance


Re: death icons - YoYo123 - 24.11.2012

pawn Код:
public OnPlayerConnect(playerid)
{
   SendDeathMessage(-1, playerid, 200);
}
public OnPlayerDisconnect(playerid, reason)
{
   SendDeathMessage(-1, playerid, 201);
}
That should work.

Sources:
https://sampwiki.blast.hk/wiki/Weapons
https://sampwiki.blast.hk/wiki/SendDeathMessage