SA-MP Forums Archive
[Ajuda] Chat Global - 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 Global (/showthread.php?tid=381806)



Chat Global - Coringa_Vilao - 30.09.2012

Resolvido !


Re: Chat Global - paulor - 30.09.2012

pawn Код:
new string[128];



Re: Chat Global - Coringa_Vilao - 30.09.2012

Resolvido !


Re: Chat Global - VenoN - 30.09.2012

kkkkkkkkkkk ta loko hein kkk


Re: Chat Global - Coringa_Vilao - 30.09.2012

Resolvido !


Re: Chat Global - Coringa_Vilao - 30.09.2012

Resolvido !


Re: Chat Global - Etton - 30.09.2012

coloque um else para a condiзгo abaixo do que vocк fez, pois se ele for admin envia a mensagem com a cor imposta, porйm tambйm executa o chat de player. Provavelmente й isso.


Re: Chat Global - Supera - 30.09.2012

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(PlayerInfo[playerid][pAdmin] > 0 && admtrampando[playerid] == 1)
        {
        new string[128];
    format(string, sizeof(string), "Admin %s diz: %s", PlayerName(playerid), text);
    ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
        SendClientMessageToAll(-1, string);
        SetPlayerChatBubble(playerid, text, COR_ADMIN, 20.0, 10000);
        return 1;
        }
}
Tentб lб


Re: Chat Global - Coringa_Vilao - 30.09.2012

Resolvido !


Re: Chat Global - Etton - 30.09.2012

Em OnPlayerText vocк colocou este cуdigo aн de admin. Abaixo deve ser algo, (se o seu for GM GodFather o seguinte: if(realchat), algo assim, e dentro deste if tem um format "%s diz: %s". Poste-me todo este IF para eu ajudб-lo.