Specify this message id please
#1

Help me with this death message.
will be thankful..

Reply
#2

https://sampwiki.blast.hk/wiki/SendDeathMessage
Reply
#3

There are two icons ICON_CONNECTED ICON_DISCONNECTED
I can not see this sign's name
Reply
#4

According to the wiki page, it claims you can use NPC's to create your own custom death reasons.

Just connect an idle NPC, set the name to "(TIMEOUT)" or "(CONNECTED)" and:

pawn Код:
SendDeathMessage(playerid, npcid, ICON_CONNECT);
Reply
#5

But i want it for a player if player
Crashes then this sign show up
and the reason must be written "Timed Out"

Plz help me
Reply
#6

you need to make npc(bot) with that name and
pawn Код:
SendDeathMessage(playerid, npcid, ICON_CONNECT);
as emmet_ said npcid is the bot id which u created it might not be same always so u can make an loop and gets its id from the loop and add it
pawn Код:
new pname[MAX_PLAYER_NAME];
foeach(Player,i)
{
        GetPlayerName(i,pname,sizeof(pname);
    if(!strcmp("TIMEOUT",pname))//not sure this part but i think this will work or use someother thing thing like GetName(i) or anyother name stocks or variables...
    {
        SendDeathMessage(playerid, i, ICON_CONNECT);
    }
}
add this onplayerdisconnect..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)