[Ajuda] Chat em OnplayerText
#4

Quote:
Originally Posted by Lucas_Henrique
Посмотреть сообщение
Adpta ese chat de admin ai, criei aqui rapdinho..

pawn Код:
if(text[0] == '!' && playerinfo[playerid][Admin] >= 1) //EDITA A VAR DE ADMIN..
    {
        new string[128],nomea[24];
        GetPlayerName(playerid,nomea,MAX_PLAYER_NAME);
        format(string,sizeof(string),"(Chat Admin): %s [%d]: %s",Nome(playerid),playerid,text[1]);
        SendAdminMessage(CORAQUI,string);
        return 0;
    }
   
    stock SendAdminMessage(cor,string[])
{
    for(new d; d < GetMaxPlayers(); ++d)
{
    if(IsPlayerConnected(d) && playerinfo[d][Admin] > 1) //EDITA A VAR DE ADMIN..
{
    SendClientMessage(d,cor,string);
    }
  }
}
Vйi na boa apaga isso todo mal identado ¬¬'
Reply


Messages In This Thread
Chat em OnplayerText - by RafaScripter - 29.09.2012, 18:29
Re: Chat em OnplayerText - by Coreia - 29.09.2012, 18:56
Re: Chat em OnplayerText - by Lucas_Henrique - 29.09.2012, 19:03
Re: Chat em OnplayerText - by Coreia - 29.09.2012, 19:05
Re: Chat em OnplayerText - by Lucas_Henrique - 29.09.2012, 19:08
Re: Chat em OnplayerText - by Jason` - 29.09.2012, 19:30

Forum Jump:


Users browsing this thread: 2 Guest(s)