[Ajuda] Chat T
#1

Eae galera to com um problema aki que nao sei o que й tipow aperta T ae digita mais nгo aparece o que ele digitou alguem me ajuda ae por favor
Reply
#2

So olhar na callback OnPlayerText !!
Reply
#3

Aperta F1 ...
Reply
#4

Na OnPlayerText tem o chat das torcidas mais o player tem q digita " ! " para poder falar no chat
Reply
#5

Quote:
Originally Posted by denis15711
Посмотреть сообщение
Na OnPlayerText tem o chat das torcidas
Pode ser seu GTA !!
Reply
#6

Mais ae eu colokei um outro gm e fs digitei e deu certo
Reply
#7

Tu colocou normal tambйm?

Se vocк so deixou pra falar com " ! ", si eu for falar sem ele nгo irб apareзer mesmo(Eu acho).
Reply
#8

Deve ser isto vey pq eu n dxei mais nada embaixo oq eu tenho q colokar para voltar normal. e quando eu digito ! pega normal Por favor alguem me ajuda ?
Reply
#9

Quote:
Originally Posted by denis15711
Посмотреть сообщение
Deve ser isto vey pq eu n dxei mais nada embaixo oq eu tenho q colokar para voltar normal. e quando eu digito ! pega normal Por favor alguem me ajuda ?
Debaixo do "return 0" do " ! ".

Coloque:
pawn Код:
new rStr[128];
format(rStr, sizeof(rStr), "(ID:%d): %s", playerid, text[0]);
SendClientMessageToAll(-1, rStr);
return 0;
}
return 1;
}
Reply
#10

Olha como que ta
pawn Код:
public OnPlayerText(playerid, text[])
{
    if(text[0] == '!')
    {
        if(PlayerInfo[playerid][pTorcida] == 1)
        {
        new VarTorcida[MAX_PLAYERS];
        new Nome[24], String[128];
        GetPlayerName(playerid, Nome, sizeof(Nome));
        format(String, sizeof(String), "[Chat Gaviхes da Fiel] %s : %s", Nome, text[1]);
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(VarTorcida[playerid] == Torcida[i])
            {
                SendClientMessage(i, -1, String);
                return 0;
            }
        }
    }
    }
    return 0;
}//Sгo 72 torcidas postei so esta para ter uma ideia
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)