SendDeathMessage to admin's only??
#6

Quote:
Originally Posted by [Fackin'
Pyro ]
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
  for(new i = 0; i < MAX_PLAYERS; i++)
  {
    if(IsPlayerConnected(i))
    {
            if(IsPlayerAdmin(i))
            {
              SendDeathMessage(killerid,playerid,reason);
            }
        }
    }
    return 1;
}
I forgot to add IsPlayerConnected.

No CracK, I'm pretty sure the above code will check if anyone online is an admin and only send the message to them.
It sends to everyone because you can't put an id in to tell it who to send it to so I was wondering if there is any other way you can do it...
Reply


Messages In This Thread
SendDeathMessage to admin's only?? - by Delused - 15.03.2009, 14:31
Re: SendDeathMessage to admin's only?? - by Pyrokid - 15.03.2009, 14:43
Re: SendDeathMessage to admin's only?? - by CracK - 15.03.2009, 14:59
Re: SendDeathMessage to admin's only?? - by Weirdosport - 15.03.2009, 15:02
Re: SendDeathMessage to admin's only?? - by Pyrokid - 15.03.2009, 15:04
Re: SendDeathMessage to admin's only?? - by Delused - 15.03.2009, 15:09
Re: SendDeathMessage to admin's only?? - by Weirdosport - 15.03.2009, 15:13
Re: SendDeathMessage to admin's only?? - by MenaceX^ - 15.03.2009, 15:14
Re: SendDeathMessage to admin's only?? - by Pyrokid - 15.03.2009, 15:15
Re: SendDeathMessage to admin's only?? - by Weirdosport - 15.03.2009, 15:18

Forum Jump:


Users browsing this thread: 1 Guest(s)