Dynamic 3D Text Label - View problem.
#1

Hello! I'm Milak and this is my first and new thread on this forum. I want to ask you for help.
I have a problem with 3D Text Label, I use it to make custom nicknames and it works but draw distance is little weird, When I'm going away from 3D Text Label then the nickname is bigger and bigger - I don't want it, it's hard to me to get it in words, please look for those screenshots:
When I'm near to him:
https://i.imgur.com/NGYnWRi.png
When I'm far to him:
https://i.imgur.com/iCNPBJS.png
It looks so weird
I forgot: I'm on the lastest SAMP 0.3.8 version using Incognito Plugin.
Reply
#2

code?
Reply
#3

new msg[128];
format(msg, sizeof(msg), " %d, %s", playerid, CharacterCache[CharacterUID(playerid)][cICName]);
CharacterCache[CharacterUID(playerid)][cNameLabel] = CreateDynamic3DTextLabel(msg, COLOR_WHITE, 0.0, 0.0, 0.15, 25.0, playerid, INVALID_VEHICLE_ID, 1, -1, -1, -1);
format(msg, sizeof(msg), " ");
CharacterCache[CharacterUID(playerid)][cUnderLabel] = CreateDynamic3DTextLabel(msg, COLOR_WHITE, 0.0, 0.0, 0.10, 25.0, playerid, INVALID_VEHICLE_ID, 1, -1, -
1, -1);

// this is how I create and attach Dynamic 3D Text labels to player who joined to server and logged to game
Reply
#4

3D Text Labels do this, the only thing you can do is show them only when the player is very close.
Reply
#5

The only way you could even hope to have this 'work' is to have the 3dtexts, be per-player. Otherwise for some it will look fine, and others it won't look right.

However, disable player name tags, and use that 3dtext to do the entire thing (Name/ID/Everything you want) using newline to split the lines.
Reply
#6

Use only one label

Код:
new msg[128];
new line2[128];
if(CharacterCache[CharacterUID(playerid)][cAFKTime]) {
 format(line2, sizeof(line2), "\nAFK Time %s", CharacterCache[CharacterUID(playerid)][cAFKTime]);
}
format(line2, sizeof(line2), "%s\nLevel %d", line2, CharacterCache[CharacterUID(playerid)][cLevel]);

format(msg, sizeof(msg), " %d, %s%s", playerid, CharacterCache[CharacterUID(playerid)][cICName], line2);
CharacterCache[CharacterUID(playerid)][cNameLabel] = CreateDynamic3DTextLabel(msg, COLOR_WHITE, 0.0, 0.0, 0.15, 25.0, playerid, INVALID_VEHICLE_ID, 1, -1, -1, -1);
Reply
#7

Quote:
Originally Posted by Weponz
Посмотреть сообщение
3D Text Labels do this, the only thing you can do is show them only when the player is very close.
I was thinking about it.
Reply
#8

bigtigerbeee's code would work if you did as I said and took the nametags off altogether.
Reply
#9

Quote:
Originally Posted by Weponz
Посмотреть сообщение
3D Text Labels do this, the only thing you can do is show them only when the player is very close.
I will do that! Thanks!
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)