death icons
#1

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

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

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

Yeah, from what i just read on wiki
Reply
#5

ok goona try it thanks
Reply
#6

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

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)