SA-MP Forums Archive
[Ajuda] Chat Prуximo Com as Cores das Orgs - 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 Prуximo Com as Cores das Orgs (/showthread.php?tid=484744)



Chat Prуximo Com as Cores das Orgs - 4G4M3N0M - 01.01.2014

Eu Tentei Tirar a Cor Azul_BB que й a cor normal do chat Mias Nгo Consegui Gostaria De Saber Como eu Trnasformo Esse Chat Prуximo, Por Exemplo Tal Player й da Org BOPE Eu quero que ele Fique com a Cor do BOPE Quando ele Fala no Chat Tal Player й Civil eu quero que o Nome dele Fique Branco quando ele Fala no Chat Entendem ?

Cуdigo do Meu Chat Prуximo:
Код:
	if (realchat)
	{
	    if(gPlayerLogged[playerid] == 0)
	    {
	        return 0;
      	}
		if(PlayerInfo[playerid][pMaskuse] == 1)
		{
			format(string, sizeof(string), "Mascarado diz: %s", text);
			ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
			ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,0);
		}
		else
		{
		   	format(string, sizeof(string), "%s diz: %s", PlayerName(playerid), text);
		   	ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
		   	ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,0,1,1,1,1);
		}
		return 0;
  	}



Re: Chat Prуximo Com as Cores das Orgs - Hulk3000 - 01.01.2014

GF detected.

@TOPIC

pawn Код:
if (realchat)
    {
        if(gPlayerLogged[playerid] == 0)
        {
            return 0;
        }
        if(PlayerInfo[playerid][pMaskuse] == 1)
        {
            format(string, sizeof(string), "Mascarado diz: %s", text);
            ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
            ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,0);
        }
        else if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) // 1 = ID DA ORG
        {
            format(string, sizeof(string), "%s diz: %s", PlayerName(playerid), text);
            ProxDetector(20.0, playerid, string,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);// Color BLUE definiзгo de cor
            ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,0,1,1,1,1);
        }// repita isso conforme a sua necessidade de acrescentar mais orgs.
        else
        {
            format(string, sizeof(string), "%s diz: %s", PlayerName(playerid), text);
            ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
            ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,0,1,1,1,1);
        }
        return 0;
    }



Re: Chat Prуximo Com as Cores das Orgs - Hulk3000 - 01.01.2014

#EDITED FAIL -qq


Re: Chat Prуximo Com as Cores das Orgs - 4G4M3N0M - 01.01.2014

@EDIT

Resolvido VLW