[Ajuda] TAG em cima do Player
#1

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?
Reply
#2

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

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:

Reply
#4

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!!
Reply
#5

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);
        }
    }
}
Reply
#6

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.
Reply
#7

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

Skype : themonkeylee
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)