Admin Chat
#2

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(text[0] == '#' && PInfo[playerid][Level] > 0) {
      new string[128]; GetPlayerName(playerid,string,sizeof(string));
        format(string,sizeof(string),"[ADMIN]%s: %s",string,text[1]); SendAdminMessage(red,string);
        return 0;      
        }
      return 1;
}

stock SendAdminMessage(color,const msg[])
{
   for (new i=0; i<MAX_PLAYERS; i++)
   {
      if (IsPlayerConnected(i) && PInfo[i][Level] > 0) SendClientMessage(i,color,msg);
   }
}
Try.
Reply


Messages In This Thread
[SOLVED]Admin Chat - by vassilis - 03.02.2012, 13:43
Re: Admin Chat - by -ExG-VirusKiller - 03.02.2012, 13:47
Re: Admin Chat - by Wesley221 - 03.02.2012, 13:47
Re: Admin Chat - by vassilis - 03.02.2012, 13:49
Re: Admin Chat - by Konstantinos - 03.02.2012, 13:52
Re: Admin Chat - by vassilis - 03.02.2012, 13:53
Re: Admin Chat - by Konstantinos - 03.02.2012, 13:55
Re: Admin Chat - by -ExG-VirusKiller - 03.02.2012, 13:56
Re: Admin Chat - by vassilis - 03.02.2012, 13:57
Re: Admin Chat - by Konstantinos - 03.02.2012, 14:01

Forum Jump:


Users browsing this thread: 6 Guest(s)