[Ajuda] Chat
#2

Ve se Te Ajuda Neguinha k
pawn Код:
public OnPlayerText(playerid, text[])
{
    if(text[0] == '!')
    {
        if(PlayerInfo[playerid][pTorcida] = 1)
        {
        new Nome[24], String[128];
        GetPlayerName(playerid, Nome, sizeof(Nome));
        format(String, sizeof(String), "[Chat de Torcida][Torcida Jovem do Flamengo]: %s Diz: %s", Nome, text[1]);
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(PlayerInfo[i][pTorcida == 1)
            {
                SendClientMessage(playerid, COLOR_PC, String);
            }
        }
        }
        if(PlayerInfo[playerid][pTorcida] = 2)
        {
        new Nome[24], String[128];
        GetPlayerName(playerid, Nome, sizeof(Nome));
        format(String, sizeof(String), "[Chat de Torcida][Raзa Rubro Negra]: %s : %s", Nome, text[1]);
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(PlayerInfo[i][pTorcida == 2)
            {
                SendClientMessage(playerid, COLOR_PC, String);
            }
        }
    }
    }
    return 1;
}
Reply


Messages In This Thread
Chat - by denis15711 - 19.07.2012, 15:11
Re: Chat - by RafaScripter - 19.07.2012, 15:20
Re: Chat - by ViniBorn - 19.07.2012, 15:21
Re: Chat - by denis15711 - 19.07.2012, 15:26

Forum Jump:


Users browsing this thread: 2 Guest(s)