[Pedido] Tag Admin e Vip
#1

Queria uma tag emcima da cabeзa do admin tipo "Admin" e Tabem uma De VIP tipo "VIP"

Obs: minha variaveis:

pawn Код:
Vip: vip[playerid] == 1)

Adm: pAdmin atй 5[playerid]
Obs: a Tag Vip quero que seja mais baixa ou alta do que do adm
Reply
#2

Attach3DTextLabelToPlayer
Reply
#3

tambem pode usar \/
https://sampwiki.blast.hk/wiki/SetPlayerChatBubble
Reply
#4

Mas o do Chat Bubble й so quando o player fala. O ideal й o Attach3DTextLabelToPlayer
Reply
#5

Codigo estб correto?

pawn Код:
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
    if( pAdmin[playerid] == 1 || pAdmin[playerid] == 2 || pAdmin[playerid] == 3 || pAdmin[playerid] == 4 || pAdmin[playerid] == 5)
    {
    new Text3D:label = Create3DTextLabel("Administrador(a)", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
    Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
    }
    return 1;
}
?
Reply
#6

public OnPlayerUpdate(playerid)


pawn Код:
if(IsPlayerAdmin(playerid))
    {
            SetPlayerChatBubble(playerid, "»» Administrador(a)| Posso ajudar?", -1, 100.0, 10000);
    }
Use como quiser.
Reply
#7

Quote:
Originally Posted by davi54723
Посмотреть сообщение
public OnPlayerUpdate(playerid)


pawn Код:
if(IsPlayerAdmin(playerid))
    {
            SetPlayerChatBubble(playerid, "»» Administrador(a)| Posso ajudar?", -1, 100.0, 10000);
    }
Use como quiser.
No Caso do SetPlayerChatBubble... seria mais correto usar o cellmax?
Reply
#8

Eu uso as tags de admin e vip como esta neste tutorial. nгo consigo fazer porque estou no celular.

http://www.fusion-samp.forumeiros.co...cima-da-cabeca
Reply
#9

pawn Код:
//Inicio do GM
new Text3D:Admin[MAX_PLAYERS];
new Text3D:Vip[MAX_PLAYERS];
pawn Код:
public OnPlayerUpdate(playerid)
{
if(pDados[playerid][Vip] > 0)
    {
        Vip[playerid] = Create3DTextLabel("VIP", 0x0000FFFF, 20.0, 20.0, 20.0, 20.0, 0);
        Attach3DTextLabelToPlayer(Vip[playerid], playerid, 0.0, 0.0, 0.4);
    }
if(pDados[playerid][Admin] > 0)
    {
        Admin[playerid] = Create3DTextLabel("Administrador", 0x0000FFFF, 20.0, 20.0, 20.0, 20.0, 0);
        Attach3DTextLabelToPlayer(Admin[playerid], playerid, 0.0, 0.0, 0.4);
    }
    return 1;
}
Reply
#10

Quote:
Originally Posted by TheKoDaK
Посмотреть сообщение
pawn Код:
//Inicio do GM
new Text3D:Admin[MAX_PLAYERS];
new Text3D:Vip[MAX_PLAYERS];
pawn Код:
public OnPlayerUpdate(playerid)
{
if(pDados[playerid][Vip] > 0)
    {
        Vip[playerid] = Create3DTextLabel("VIP", 0x0000FFFF, 20.0, 20.0, 20.0, 20.0, 0);
        Attach3DTextLabelToPlayer(Vip[playerid], playerid, 0.0, 0.0, 0.4);
    }
if(pDados[playerid][Admin] > 0)
    {
        Admin[playerid] = Create3DTextLabel("Administrador", 0x0000FFFF, 20.0, 20.0, 20.0, 20.0, 0);
        Attach3DTextLabelToPlayer(Admin[playerid], playerid, 0.0, 0.0, 0.4);
    }
    return 1;
}
Cara sem comentбrios pelo code...
Usar na OnPlayerUpdate e desse modo ae.. vejo bugs legais de Label no servidor kз
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)