NomeRuaTD[playerid] = CreatePlayerTextDraw(playerid, 522.000000, 110.000000, "Jefferson");
PlayerTextDrawBackgroundColor(playerid, NomeRuaTD[playerid], 255);
PlayerTextDrawFont(playerid, NomeRuaTD[playerid], 0);
PlayerTextDrawLetterSize(playerid, NomeRuaTD[playerid], 0.509999, 1.400000);
PlayerTextDrawColor(playerid, NomeRuaTD[playerid], -16776961);
PlayerTextDrawSetOutline(playerid, NomeRuaTD[playerid], 1);
PlayerTextDrawSetProportional(playerid, NomeRuaTD[playerid], 1);
// nome da rua TD
new nrstring[128], zone[MAX_ZONE_NAME];
GetPlayer2DZone(i, zone, MAX_ZONE_NAME);
format(nrstring, sizeof(nrstring), "%s", zone);
PlayerTextDrawSetString(i, NomeRuaTD[i], nrstring);
PlayerTextDrawHide(i, NomeRuaTD[i]);
PlayerTextDrawShow(i, NomeRuaTD[i]);
For alignment 2 (center) the x and y values of TextSize need to be swapped, see notes at PlayerTextDrawTextSize.
Usa PlayerTextdrawAlignment centered e deixa um espaзo de sobra pra ser preenchido por nomes maiores.
https://sampwiki.blast.hk/wiki/PlayerTextDrawAlignment PS: Se vocк tб fazendo na mгo a PlayerTextDraw, quando usar alignment centered vocк tem que trocar os valores de X e Y um pelo outro, se vocк estiver fazendo suas TextDraws com Zamaroth Textdraw Editor (que eu recomendo), nem precisa se preocupar com isso, sу selecionar o alignment centered, posicionar certinho e deixar um espaзo extra pra textos maiores, exportar e colocar no seu gamemode. Код:
For alignment 2 (center) the x and y values of TextSize need to be swapped, see notes at PlayerTextDrawTextSize. |