Death Message - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Death Message (
/showthread.php?tid=104303)
Death Message -
MB@ - 23.10.2009
Uum i know when you put senddeathmessage on on player death.
But when i put it it wont show me players who disconnected or connected like in the pic
How can i do that it says who disconnected or connected?
Re: Death Message -
Kyle - 23.10.2009
Put it onplayerconnect
And onplayerdisconnect
Re: Death Message -
MB@ - 23.10.2009
Uum cant
OnPlayerDeath contains only playerid and reason
but SendDeathMessage contains playerid, killerid, reason
OnPlayerDeath doesent have killerid
Re: Death Message -
member - 23.10.2009
I've never used Deathmessages for Disconnections, but this should work i think:
EDIT: Realised a mistake. Updated
pawn Code:
public OnPlayerDisconnect(playerid, reason)
{
SendDeathMessage(playerid, playerid, 201);
return 1;
}
public OnPlayerConnect(playerid)
{
SendDeathMessage(playerid, playerid, 200);
return 1;
}
Re: Death Message -
MB@ - 23.10.2009
Oh thank you it works