[Ajuda] Texto acima da skin
#1

Eae.

Preciso muito da vossa ajuda. Sim eu sei que muitos dizem "use o search" mas eu jб procurei muito atй procurei em Inglкs mas nunca encontrei.

Eu queria colocar um texto acima da skin. Por exemplo se um Player foi Admin Nнvel 1 ele fica com o nome acima da skin a dizer por exemplo "Administrador".

Se alguйm souber como eu faзo isso me ajuda pfv.

Vlw.
Reply
#2

https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer
Reply
#3

https://sampwiki.blast.hk/wiki/SetPlayerChatBubble
Reply
#4

Ta aqui um exemplo

pawn Код:
//Aqui vocк ponha se e administrador
{
new Text3D:label = Create3DTextLabel("Administrador(a)", 0x99FFFFAA, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
}
Reply
#5

Vlw iHarzard e Standby consegui +reputaзгo.

Agora sу tem um problema e coloquei na public onplayerconnect mas quando o server reinicia quando o jogador connecta ele ja nao fica com o texto de admin e tenho que dar de novo. Eu tenho que colocar em outra public ou o que tenho que fazer ?
Reply
#6

Quote:
Originally Posted by Emanuel17
Посмотреть сообщение
Vlw iHarzard e Standby consegui +reputaзгo.

Agora sу tem um problema e coloquei na public onplayerconnect mas quando o server reinicia quando o jogador connecta ele ja nao fica com o texto de admin e tenho que dar de novo. Eu tenho que colocar em outra public ou o que tenho que fazer ?
Mande o sistema para eu ver, se puder.
Reply
#7

pawn Код:
if(pAdmin[playerid] == 2)
{
new Text3D:label = Create3DTextLabel("Ajudante", 0xFFFF00FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
}
if(pAdmin[playerid] == 3)
{
new Text3D:label = Create3DTextLabel("Moderador(a)", 0xFFA500FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
}
if(pAdmin[playerid] == 4)
{
new Text3D:label = Create3DTextLabel("Administrador(a)", 0x1E90FFFF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
}
if(pAdmin[playerid] == 5)
{
new Text3D:label = Create3DTextLabel("Staff", 0x00FF00FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
}
ta ae
Reply
#8

isso vai em
pawn Код:
OnPlayerConnect
lembrando
Reply
#9

Tae tio, um tutorial que fiz um tempo atrбs.

https://sampforum.blast.hk/showthread.php?tid=334784
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)