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



CHATBUBBLE /LIDERES FAC - Dimbalada - 26.04.2017

Bom acabei de fazer um sistema de ChatBubble tipo fiz tudo mas chego nas facзхes tem 4 Facзхes MLC, CMD, 3CP, LLL, Ai tipo eu queria que ficase assim Quando o player fosse setado de Lider da MLC Ficase Lider Da MLC Em cima do nick e quando fosse setado de LIDER Da CMD Fica em cima do nick tendeu
PHP код:
if(Player[x][pRadinho] >= 1)
        {
        
SetPlayerChatBubble(x"Radinho"COR_PRINCIPAL100.010000);
        }
        if(
Player[x][pFogueteiro] >= 1)
        {
        
SetPlayerChatBubble(x"Fogueteiro"COR_PRINCIPAL100.010000);
        }
        if(
Player[x][pVapor] >= 1)
        {
        
SetPlayerChatBubble(x"Vapor"COR_PRINCIPAL100.010000);
        }
        if(
Player[x][pFrente] >= 1)
        {
        
SetPlayerChatBubble(x"Frente"COR_PRINCIPAL100.010000);
        }
        if(
Player[x][pDM] >= 1)
        {
        
SetPlayerChatBubble(x"Dono De Morro"COR_PRINCIPAL100.010000);
        }
        if(
Player[x][pLider] >= 1)
        } 
fiz o lider certinho mas queria botar Pra Ficar Qual facзгo voce e lider n queria vim aki de novo mas fiz de tudo rs...


Re: CHATBUBBLE /LIDERES FAC - RIPOrkut - 26.04.2017

Quote:
Originally Posted by Dimbalada
Посмотреть сообщение
Bom acabei de fazer um sistema de ChatBubble tipo fiz tudo mas chego nas facзхes tem 4 Facзхes MLC, CMD, 3CP, LLL, Ai tipo eu queria que ficase assim Quando o player fosse setado de Lider da MLC Ficase Lider Da MLC Em cima do nick e quando fosse setado de LIDER Da CMD Fica em cima do nick tendeu
PHP код:
if(Player[x][pRadinho] >= 1)
        {
        
SetPlayerChatBubble(x"Radinho"COR_PRINCIPAL100.010000);
        }
        if(
Player[x][pFogueteiro] >= 1)
        {
        
SetPlayerChatBubble(x"Fogueteiro"COR_PRINCIPAL100.010000);
        }
        if(
Player[x][pVapor] >= 1)
        {
        
SetPlayerChatBubble(x"Vapor"COR_PRINCIPAL100.010000);
        }
        if(
Player[x][pFrente] >= 1)
        {
        
SetPlayerChatBubble(x"Frente"COR_PRINCIPAL100.010000);
        }
        if(
Player[x][pDM] >= 1)
        {
        
SetPlayerChatBubble(x"Dono De Morro"COR_PRINCIPAL100.010000);
        }
        if(
Player[x][pLider] >= 1)
        } 
fiz o lider certinho mas queria botar Pra Ficar Qual facзгo voce e lider n queria vim aki de novo mas fiz de tudo rs...
Adapte a funзгo abaixo para seu gamemode xD

Код:
forward FaccaoChatBubble(x);
public FaccaoChatBubble(x)
{
        if(Player[x][pLider] == 1)
	{
	    SetPlayerChatBubble(x, "Lнder da Facзгo 1 (CMD por exemplo)", COR_PRINCIPAL, 50.0, 9000);
	}
        if(Player[x][pLider] == 2)
	{
	    SetPlayerChatBubble(x, "Lнder da Facзгo 2 (TCP por exemplo)", COR_PRINCIPAL, 50.0, 9000);
	}
        if(Player[x][pLider] == 3)
	{
	    SetPlayerChatBubble(x, "Lнder da Facзгo 3 (ADA por exemplo)", COR_PRINCIPAL, 50.0, 9000);
	}
        if(Player[x][pLider] == 4)
	{
	    SetPlayerChatBubble(x, "Lнder da Facзгo 4 (PCC por exemplo)", COR_PRINCIPAL, 50.0, 9000);
        }
	return 1;
}