SA-MP Forums Archive
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(killeridkilleeweaponid)
{
    
/* Loop and check for admin status on players */
    
SendDeathMessageToPlayer(ikilleridkilleeweaponid);
    return 
1;




Re: SendDeathMessage - Micko123 - 15.01.2017

Quote:
Originally Posted by Logic_
Посмотреть сообщение
Yes, https://sampwiki.blast.hk/wiki/SendDeathMessageToPlayer .

PHP код:
SendDeathMessageToAdmin(killeridkilleeweaponid)
{
    
/* Loop and check for admin status on players */
    
SendDeathMessageToPlayer(ikilleridplayeridreason);
    return 
1;

Thank you man

Didn't knew that SendDeathMessageToPlayer exist thx