SA-MP Forums Archive
[Ajuda] TAG em cima do Player - 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] TAG em cima do Player (/showthread.php?tid=466711)



TAG em cima do Player - .ThePro - 29.09.2013

Olб, boa noite!

Estou com um problema para por TAG's em cima do nick de Admins e Vips.

Jб tentei das seguintes formas:

OnPlayerConnect
PHP код:
for(new x=0MAX_PLAYERSx++)
{
        if(
PlayerInfo[x][pAdmin] >= 1)
        {
                
label[x] = Create3DTextLabel("Administrador",0x008080FF,30.0,40.0,50.0,40.0,0);
             
Attach3DTextLabelToPlayer(label[x], playerid0.00.00.7);
        }
        if(
PlayerInfo[x][pVip] >= 1)
        {
               
label[x] = Create3DTextLabel("*** VIP ***",0x008080FF,30.0,40.0,50.0,40.0,0);
         
Attach3DTextLabelToPlayer(label[x], playerid0.00.00.7);
        }

PHP код:
    if(PlayerInfo[playerid][pAdmin] >= 1)
     {
         
label[playerid] = Create3DTextLabel("Administrador",0x008080FF,30.0,40.0,50.0,40.0,0);
        
Attach3DTextLabelToPlayer(label[playerid], playerid0.00.00.7);
      }
       if(
PlayerInfo[playerid][pVip] >= 1)
        {
        
label[playerid] = Create3DTextLabel("*** VIP ***",0x008080FF,30.0,40.0,50.0,40.0,0);
        
Attach3DTextLabelToPlayer(label[playerid], playerid0.00.00.7);
      } 
Ambas nгo aparece a TAG em cima do player, jб dei uma estudada no 3DTextLabel e no Attach3DTextLabel, mas nгo consegui resolver, alguйm poderia me ajudar?


Re: TAG em cima do Player - AlieN_. - 29.09.2013

[ame]http://www.youtube.com/watch?v=hsX9OLAQID0[/ame]


Re: TAG em cima do Player - ThuuGLif3 - 29.09.2013

pawn Код:
if(PlayerInfo[playerid][pAdmin] >= 1)
     {
     SetPlayerChatBubble( playerid, "Administrador(a)", 0x86DD63FF, 30.0, 10000 );
      }
       if(PlayerInfo[playerid][pVip] >= 1)
        {
        SetPlayerChatBubble( playerid, "Jogador (a) VIP", 0x86DD63FF, 30.0, 10000 );
      }
     
      for(new x=0; x < MAX_PLAYERS; x++)
     {
        if(PlayerInfo[x][pAdmin] >= 1)
        {
        SetPlayerChatBubble( playerid, "Administrador(a)", 0x86DD63FF, 30.0, 10000 );
        }
        if(PlayerInfo[x][pVip] >= 1)
        {
        SetPlayerChatBubble( playerid, "Jogador (a) VIP", 0x86DD63FF, 30.0, 10000 );
        }
}
@EDIT

Imagem de como ficara:




Re: TAG em cima do Player - .ThePro - 29.09.2013

Quote:
Originally Posted by ThuuGLif3
Посмотреть сообщение
pawn Код:
if(PlayerInfo[playerid][pAdmin] >= 1)
     {
     SetPlayerChatBubble( playerid, "Administrador(a)", 0x86DD63FF, 30.0, 10000 );
      }
       if(PlayerInfo[playerid][pVip] >= 1)
        {
        SetPlayerChatBubble( playerid, "Jogador (a) VIP", 0x86DD63FF, 30.0, 10000 );
      }
     
      for(new x=0; x < MAX_PLAYERS; x++)
     {
        if(PlayerInfo[x][pAdmin] >= 1)
        {
        SetPlayerChatBubble( playerid, "Administrador(a)", 0x86DD63FF, 30.0, 10000 );
        }
        if(PlayerInfo[x][pVip] >= 1)
        {
        SetPlayerChatBubble( playerid, "Jogador (a) VIP", 0x86DD63FF, 30.0, 10000 );
        }
}
@EDIT

Imagem de como ficara:

Nгo funcionou!!


Re: TAG em cima do Player - Wellington1999 - 29.09.2013

OnGameModeInit
pawn Код:
SetTimer("TextPlayer",1000, true);
pawn Код:
forward TextPlayer();
public TextPlayer()
{
for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(PlayerInfo[i][pAdmin] > 0)
        {
            SetPlayerChatBubble(i, "** Administrador **", 0x86DD63FF, 100.0, 10000);
        }
        if(PlayerInfo[i][pVip] > 0)
        {
            SetPlayerChatBubble(i, "Player VIP", 0x86DD63FF, 100.0, 10000);
        }
    }
}



Re: TAG em cima do Player - n0minal - 29.09.2013

SetTimer pra uma funзгo que nem existe? /\

@Edit : usa isso aн que o wellington postou, sу modifique o SetTimer pra SetTimerEx e em onplayerconnect. E nгo precisa de loop.


Re: TAG em cima do Player - Wellington1999 - 29.09.2013

Ops,desculpas, nгo vi que viajei no code agora,
@Off ai pode passar skype n0minal


Re: TAG em cima do Player - n0minal - 29.09.2013

Skype : themonkeylee