[Ajuda] Nome acima do NPC
#1

Olб,
Como coloco um NPC e acima dele botar uma frase? tipo essa
http://prntscr.com/797bfo
Reply
#2

https://sampwiki.blast.hk/wiki/CreatePlayer3DTextLabel

Bбsicamente:
pawn Код:
if(strcmp(cmd, "/playerlabel", true) == 0)
{
    new PlayerText3D:playertextid;
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos( playerid, X, Y, Z );
    playertextid = CreatePlayer3DTextLabel(playerid,"Hello\nI'm at your position",0x008080FF,X,Y,Z,40.0);
    return 1;
}
Sу muda o playerid, pelo ID do NPC, e coloca na onplayerconnect, depois de ter criado o NPC, claro.
Reply
#3

Quote:
Originally Posted by Felipe_Freeze
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/CreatePlayer3DTextLabel

Bбsicamente:
pawn Код:
if(strcmp(cmd, "/playerlabel", true) == 0)
{
    new PlayerText3D:playertextid;
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos( playerid, X, Y, Z );
    playertextid = CreatePlayer3DTextLabel(playerid,"Hello\nI'm at your position",0x008080FF,X,Y,Z,40.0);
    return 1;
}
Sу muda o playerid, pelo ID do NPC, e coloca na onplayerconnect, depois de ter criado o NPC, claro.
Onde Boto a mensagem q eu quero ?
Reply
#4

pawn Код:
CreatePlayer3DTextLabel(playerid,"   >>> SUA MENSAGEM AQUI <<    ",0x008080FF,X,Y,Z,40.0);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)