[Ajuda] Chat em OnplayerText
#6

pawn Код:
public OnPlayerText(playerid, text[]) {

    if(text[0] == '!') {
   
        if(variavelAdmin[playerid] > 0) {

            static string[128], name[24], index;
            format(string, sizeof(string), "(Chat administraзгo - %s): %s", (GetPlayerName(playerid, name, sizeof(name)), name), text[1]);
            for(index = 0; index != GetMaxPlayers(); ++index) {
           
                if(variavelAdmin[index] > 0) {
               
                    SendClientMessage(index, 0x00FFFFFF, string);
                }
            }
        }
        return 0;
    }
    return 1;
}
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: 3 Guest(s)