[AJUDA]Chat Adm !!
#8

Quote:
Originally Posted by DarkPT
Посмотреть сообщение
pawn Код:
public OnPlayerText(playerid, text[])
{
   if(text[0] == '/' && text[1] == 'a' && text[2] == 'c' && strlen(text) > 3)
   {
      new aname[MAX_PLAYER_NAME];
      GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
      format(file, sizeof(file), PASTA_CONTAS, aname);
   
      if(pAdmin[playerid] < 1 || pAdmin[playerid] > 5)
         return false;
   
      format(string, sizeof(string), "(»)Chat-Admin(«) %s(%d) diz: %s", aname, playerid, text[3]);
      ABroadCast(Verde,string,1);

      return true;
   }
   return false;
}
Acho que quando algum jogador digita um comando, a callback chama й OnPlayerCommandText e nгo OnPlayerText.
Reply


Messages In This Thread
[AJUDA]Chat Adm !! - by dPlaYer_ - 21.07.2011, 23:53
Re: [AJUDA]Chat Adm !! - by ViniBorn - 21.07.2011, 23:59
Re: [AJUDA]Chat Adm !! - by Devastador - 22.07.2011, 01:39
Re: [AJUDA]Chat Adm !! - by Shadoww5 - 22.07.2011, 01:51
Re: [AJUDA]Chat Adm !! - by Devastador - 22.07.2011, 02:08
Re: [AJUDA]Chat Adm !! - by Shadoww5 - 22.07.2011, 08:34
Re: [AJUDA]Chat Adm !! - by array13 - 22.07.2011, 09:48
Re: [AJUDA]Chat Adm !! - by Shadoww5 - 22.07.2011, 15:57
Re: [AJUDA]Chat Adm !! - by dPlaYer_ - 22.07.2011, 16:03
Re: [AJUDA]Chat Adm !! - by steki. - 22.07.2011, 16:04

Forum Jump:


Users browsing this thread: 2 Guest(s)