SendDeathMessage to admin's only??
#5

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.
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)