Command otherwise?
#2

Something Like This
pawn Код:
#include <a_samp>
#define red 0xFF0000AA

public OnPlayerText(playerid, text[])
{
    if(text[0] == '//' && IsPlayerAdmin(playerd)) {
      new string[128]; GetPlayerName(playerid,string,sizeof(string));
        format(string,sizeof(string),"Admin Chat: %s: %s",string,text[1]); SendMessageToRAdmins(red,string);
      return 0;
}

stock SendMessageToRAdmins(color,const msg[])
{
   for (new i=0; i<MAX_PLAYERS; i++)
   {
      if (IsPlayerConnected(i) && IsPlayerAdmin(i)) SendClientMessage(i,color,msg);
   }
}
Reply


Messages In This Thread
~fixed~ - by Blackazur - 22.06.2013, 11:54
Re: Command otherwise? - by Sulps - 22.06.2013, 11:57
AW: Command otherwise? - by Blackazur - 22.06.2013, 12:08

Forum Jump:


Users browsing this thread: 1 Guest(s)