SendDeathMessage's to admins?
#1

Well, the heading say's it all.
How can I SendDeathMessage's only to admins??
Reply
#2

Is this even possible??
Anyone? :S
Reply
#3

you cant, send death message is only for everyone you cant just send to a perticular person or admin or admins xD
Reply
#4

I'm not sure if this is possible, but try with:

pawn Код:
OnPlayerDeath()
{
     for(new i = 0;i<GetMaxPlayers();i++)
     {
           if(admin[i] > 0) // Replace with your admin variable
           {
                 SendDeathMessage(killerid,reason,playerid);
           }
     }
}
But i'm pretty sure it will still make it for everyone, else you cut use SendClientMessage() and send who killed who and with what weapon.
Reply
#5

Quote:
Originally Posted by dark_clown
Посмотреть сообщение
you cant, send death message is only for everyone you cant just send to a perticular person or admin or admins xD
Okay, I was just curious about that.
Thanks for your answer.
Reply
#6

It's definatly not possible. ATM.
Reply
#7

Not sure it will work,

pawn Код:
OnPlayerDeath( blablabla.... )
{
for(new i; i < MAX_PLAYERS; i ++ )
{
if(IsPlayerConnected(i))
{
if(IsPlayerAdmin(i))
{
SendDeathMessage(killerid, playerid, reason);
}
}
}
return 1;
}
not sure it will work...
Or like iggy1 said, maybe it's not possible.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)