SendDeathMessage - 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: SendDeathMessage (
/showthread.php?tid=626444)
SendDeathMessage -
Micko123 - 15.01.2017
Is it possible to send Death Message to only admins??
Re: SendDeathMessage -
RyderX - 15.01.2017
[EDIT]:.............
Re: SendDeathMessage -
Micko123 - 15.01.2017
I found this
Код:
stock SendDeathMessageToAdmins(killerid, playerid, reason)
{
foreach(new i: Player)
{
if(PlayerInfo[i][pAdmin] >= 1)
{
SendDeathMessage(killerid, playerid, reason);
return 1;
}
}
return 1;
}
But they said it will spam death message for every admin connected.. any ideas?
Re: SendDeathMessage -
Logic_ - 15.01.2017
Yes,
https://sampwiki.blast.hk/wiki/SendDeathMessageToPlayer .
PHP код:
SendDeathMessageToAdmin(killerid, killee, weaponid)
{
/* Loop and check for admin status on players */
SendDeathMessageToPlayer(i, killerid, killee, weaponid);
return 1;
}
Re: SendDeathMessage -
Micko123 - 15.01.2017
Quote:
Originally Posted by Logic_
|
Thank you man
Didn't knew that SendDeathMessageToPlayer exist

thx