SendDeathMessage
#1

Is it possible to send Death Message to only admins??
Reply
#2

[EDIT]:.............
Reply
#3

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?
Reply
#4

Yes, https://sampwiki.blast.hk/wiki/SendDeathMessageToPlayer .

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

Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)