[Ajuda] Chat
#7

Adicione o resto ...
pawn Код:
public OnPlayerText(playerid, text[])
{
    if(text[0] == '!')
    {
        new Nome[24], String[128];
        GetPlayerName(playerid, Nome, sizeof(Nome));
        if(PlayerInfo[playerid][pTorcida] == 1)
            format(String, sizeof(String), "[Chat Gaviхes da Fiel] %s : {FFFFFF}%s", Nome, text[1]);
        else if(PlayerInfo[playerid][pTorcida] == 2)
            format(String, sizeof(String), "[Chat Torcida Coringгo Chopp] %s : {FFFFFF}%s", Nome, text[1]);

        SendHelperMessage(playerid, COLOR_TVP, String);
        return 0;
    }
    return 1;
}

public SendHelperMessage(playerid, color, string[])
{
    for(new i, j = GetMaxPlayers(); i != j; i++)
        if(IsPlayerConnected(i))
            if(PlayerInfo[playerid][pTorcida] == PlayerInfo[i][pTorcida])
                SendClientMessage(i, COLOR_TVP, string);

    printf("[Chat]%s", string);
}
Reply


Messages In This Thread
Chat - by denis15711 - 24.07.2012, 20:59
AW: Chat - by billy the kid - 24.07.2012, 21:03
Re: Chat - by denis15711 - 24.07.2012, 21:05
Re: Chat - by ViniBorn - 24.07.2012, 21:10
Re: Chat - by leonardo1434 - 24.07.2012, 21:10
Re: Chat - by denis15711 - 24.07.2012, 21:12
Re: Chat - by ViniBorn - 24.07.2012, 21:16
Re: Chat - by denis15711 - 24.07.2012, 21:24
Re: Chat - by denis15711 - 24.07.2012, 21:38
Re: Chat - by Don_Speed - 24.07.2012, 21:49

Forum Jump:


Users browsing this thread: 4 Guest(s)