The @ and # don't work for Admin Chat feature, why?
#9

Quote:
Originally Posted by Mikep.
pawn Код:
//Admin Chat
if((text[0] == '#' || text[0] == '@') && admin_check && strlen(text) > 1)
{
  format(string,sizeof(string),"[ADMIN] %s (%i): %s",pName[playerid],playerid,text[1]);
  for(new i = 0; i < MAX_PLAY; i++)
  {
    if(admin_check) SendClientMessageToPlayer(i,COLOR_PINK,string);
  }
  return 0;
}
Put that under OnPlayerText, and replace the 2 admin_check's with your 'IsPlayerAdmin(playerid)' or whatever you use.
Ah, thanks Mike!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)