Tag vip [Consulta]
#1

Hola amigos, me preguntaba como podria poner un TAG a todos los vip alado del nombre.

aqui un imagen:



mis variable es

pawn Код:
enum PlayerData
{

pVip,

}

PlayerInfo[playerid][pVip] = 0;

if(PlayerInfo[playerid][pVip] >= 1) {
       new chat[130];
    format(chat, sizeof(chat), "{FFFFFF}[%d]: {FFFFFF}%s", playerid, text);
    SendPlayerMessageToAll(playerid,chat);
    SetPlayerChatBubble(playerid, text, yellow, 100.0, 10000);
    return 0;
    }

gracias.
Reply
#2

Creo que es con 3dtext
https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer
Reply
#3

Quote:
Originally Posted by jotajeda
Посмотреть сообщение
Tu crees que asi puede estar correcto.


pawn Код:
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
    if( PlayerInfo[i][pVip] == 1 || PlayerInfo[i][pVip] == 2 || PlayerInfo[i][pVip] == 3 || PlayerInfo[i][pVip] == 4 || PlayerInfo[i][pVip] == 5)
    {
    new Text3D:label = Create3DTextLabel("Vip", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
    Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
    }
    return 1;
}

XDD
Reply
#4

Quote:
Originally Posted by Zodiaco
Посмотреть сообщение
Tu crees que asi puede estar correcto.


pawn Код:
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
    if( PlayerInfo[i][pVip] == 1 || PlayerInfo[i][pVip] == 2 || PlayerInfo[i][pVip] == 3 || PlayerInfo[i][pVip] == 4 || PlayerInfo[i][pVip] == 5)
    {
    new Text3D:label = Create3DTextLabel("Vip", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
    Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
    }
    return 1;
}

XDD
Si pero debe de ser https://sampwiki.blast.hk/wiki/CreatePlayer3DTextLabel , para cada player. tu codigo si se ve bien, pero ten en cuenta que debe de ser alado del nombre las coordenadas.
Reply
#5

https://sampforum.blast.hk/showthread.php?tid=486435
Reply
#6

Quote:
Originally Posted by jotajeda
Посмотреть сообщение
Si pero debe de ser https://sampwiki.blast.hk/wiki/CreatePlayer3DTextLabel , para cada player. tu codigo si se ve bien, pero ten en cuenta que debe de ser alado del nombre las coordenadas.
mm seria asi

pawn Код:
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
    if( PlayerInfo[i][pVip] == 1 || PlayerInfo[i][pVip] == 2 || PlayerInfo[i][pVip] == 3 || PlayerInfo[i][pVip] == 4 || PlayerInfo[i][pVip] == 5)
    {
    new Text3D:label = CreatePlayer3DTextLabel("Vip", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
    Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
    }
    return 1;
}

de las coordenas en los nombres ahi si me perdi
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)