[Ajuda] Problema Com Chat.
#1

Bom , no meu gm de facзхes (BASE DE GM DE TORCIDAS) , na parte ali q tem MAX_FACЗХES , ali sao os bondes que teem, cada facзгo tem quatro bondes , caverao tem 4 cp tem 4 , agr o problema e q la no chat quem й do Primeiro comando da laginha digita '!' e consegue falar certo no chat do caverao ... mais quem й dos outros bondes do caverao n consegue , e da cp tmb ngm consegue falar no chat.. podem ajudar ? oque ta errado?

Parte do chat : http://i.imgur.com/Yz7jevm.png
Parte da facзгo : http://i.imgur.com/e4jBo9h.png
Reply
#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
#3

Quote:
Originally Posted by Ivison
Посмотреть сообщение
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;
}
Crl cara funcionou certinho aqui velho vlw msm ai ...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)