[Ajuda] Problema Com Chat.
#2

fala um pouco mais do problema. mais eu acho que й assim

pawn Код:
//Caveirгo
    if(text[0] == '!')
        if(Player[playerid][pTorcida] == 1 || Player[playerid][pTorcida] == 2 || Player[playerid][pTorcida] == 3 || Player[playerid][pTorcida] == 4)
    {
        new sendername[30];
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "[Chat - Caverгo] %s (%i): {FFFFFF}%s", sendername, playerid , text[1]);
        ABroadTeam(COR_CMD,string,1);
        printf(string);
        return 0;
    }

//Comando da paz
    if(text[0] == '!')
        if(Player[playerid][pTorcida] == 5 || Player[playerid][pTorcida] == 6 || Player[playerid][pTorcida] == 7 || Player[playerid][pTorcida] == 8)
    {
        new sendername[30];
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "[Chat - Comando Da Paz] %s (%i): {FFFFFF}%s", sendername, playerid , text[1]);
        ABroadTeam2(COR_ADA,string,1);
        printf(string);
        return 0;
    }

//----------------//
forward ABroadTeam(COLOR,const string[],level);
public ABroadTeam(COLOR,const string[],level)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            new aname[MAX_PLAYER_NAME];
            GetPlayerName(i, aname, MAX_PLAYER_NAME);
            if(Player[i][pTorcida] == 1 || Player[i][pTorcida] == 2 || Player[i][pTorcida] == 3 || Player[i][pTorcida] == 4)
            {
                SendClientMessage(i, COLOR, string);
            }
        }
    }
    return 1;
}

forward ABroadTeam2(COLOR,const string[],level);
public ABroadTeam2(COLOR,const string[],level)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            new aname[MAX_PLAYER_NAME];
            GetPlayerName(i, aname, MAX_PLAYER_NAME);
            if(Player[i][pTorcida] == 5 || Player[i][pTorcida] == 6 || Player[i][pTorcida] == 7 || Player[i][pTorcida] == 8)
            {
                SendClientMessage(i, COLOR, string);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Problema Com Chat. - by SeckSeck - 21.11.2014, 23:10
Re: Problema Com Chat. - by _Play_ - 21.11.2014, 23:18
Respuesta: Re: Problema Com Chat. - by SeckSeck - 22.11.2014, 17:21

Forum Jump:


Users browsing this thread: 1 Guest(s)