Specify this message id please - 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: Specify this message id please (
/showthread.php?tid=536887)
Specify this message id please -
gurmani11 - 12.09.2014
Help me with this death message.
will be thankful..
Re: Specify this message id please -
Twizted - 12.09.2014
https://sampwiki.blast.hk/wiki/SendDeathMessage
Re: Specify this message id please -
gurmani11 - 13.09.2014
There are two icons ICON_CONNECTED ICON_DISCONNECTED
I can not see this sign's name
Re: Specify this message id please - Emmet_ - 13.09.2014
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);
Re: Specify this message id please -
gurmani11 - 15.09.2014
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
Re: Specify this message id please -
AroseKhanNiazi - 15.09.2014
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..