SA-MP Forums Archive
[Ajuda] Chat T - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Chat T (/showthread.php?tid=361391)



Chat T - denis15711 - 20.07.2012

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


Re: Chat T - Don_Speed - 20.07.2012

So olhar na callback OnPlayerText !!


Re: Chat T - Ades - 20.07.2012

Aperta F1 ...


Re: Chat T - denis15711 - 20.07.2012

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


Re: Chat T - Don_Speed - 20.07.2012

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


Re: Chat T - denis15711 - 20.07.2012

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


Re: Chat T - @Riichard - 20.07.2012

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).


Re: Chat T - denis15711 - 20.07.2012

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 ?


Re: Chat T - @Riichard - 20.07.2012

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;
}



Re: Chat T - denis15711 - 20.07.2012

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