Portal SAMP
[Ajuda] TEXDRAW - Versão de Impressão

+- Portal SAMP (https://portalsamp.com)
+-- Fórum: SA-MP (https://portalsamp.com/forumdisplay.php?fid=5)
+--- Fórum: Área de suporte (https://portalsamp.com/forumdisplay.php?fid=6)
+--- Tópico: [Ajuda] TEXDRAW (/showthread.php?tid=993)



TEXDRAW - Smith - 28/03/2021

como faço para exibir o nome do player nessa texdraw no lugar de Nink_nome
Código:
   Textdraw[11] = TextDrawCreate(247.379302, 165.666595, "Nink_Nome");
   TextDrawLetterSize(Textdraw[11], 0.449999, 1.600000);
   TextDrawAlignment(Textdraw[11], 1);
   TextDrawColor(Textdraw[11], -1);
   TextDrawSetShadow(Textdraw[11], 0);
   TextDrawSetOutline(Textdraw[11], 1);
   TextDrawBackgroundColor(Textdraw[11], 51);
   TextDrawFont(Textdraw[11], 1);
   TextDrawSetProportional(Textdraw[11], 1);



RE: TEXDRAW - k2bi_YT - 28/03/2021

https://open.mp/docs/scripting/functions/TextDrawSetString


RE: TEXDRAW - k2bi_YT - 28/03/2021

https://open.mp/docs/scripting/functions/CreatePlayerTextDraw

Cara, estudar sobre as funções nunca é demais. Tenha força de vontade para pesquisar envés de criar tópicos que já feitos e respondidos.


RE: TEXDRAW - DMOURA - 28/03/2021

Código:
new Name[24]; 
GetPlayerName(playerid, Name, sizeof(Name));
TextDrawSetString(Textdraw[11], Name);

para exibir
Código:
TextDrawShowForPlayer(playerid, Textdraw[11]);