SA-MP Forums Archive
SendDeathMessage's to admins? - 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: SendDeathMessage's to admins? (/showthread.php?tid=193610)



SendDeathMessage's to admins? - Alex_Valde - 26.11.2010

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


Re: SendDeathMessage's to admins? - Alex_Valde - 28.11.2010

Is this even possible??
Anyone? :S


Re: SendDeathMessage's to admins? - dark_clown - 28.11.2010

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


Re: SendDeathMessage's to admins? - Naxix - 28.11.2010

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.


Re: SendDeathMessage's to admins? - Alex_Valde - 28.11.2010

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.


Re: SendDeathMessage's to admins? - iggy1 - 28.11.2010

It's definatly not possible. ATM.


Re: SendDeathMessage's to admins? - Basicz - 28.11.2010

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.