CreateDynamic3DTextLabel help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: CreateDynamic3DTextLabel help (
/showthread.php?tid=429952)
CreateDynamic3DTextLabel help -
MichaelWharton101 - 11.04.2013
Okay, When I am close it shows how I want it, when I walk back it all goes into one, how to fix this?
SS of what I see.
Close

Far
My code for this
Код:
BusText1 = CreateDynamic3DTextLabel("A-RP Administrator", COLOR_RED, 0, 0, -20, 25, playerid);
BusText2 = CreateDynamic3DTextLabel("GOD", COLOR_WHITE, 0, 0, -20, 19, playerid);
BusText3 = CreateDynamic3DTextLabel("Server Creator", COLOR_BLUE, 0, 0, -20, 13, playerid);
Streamer_SetFloatData(STREAMER_TYPE_3D_TEXT_LABEL, BusText1 , E_STREAMER_ATTACH_OFFSET_Z, 0.25);
Streamer_SetFloatData(STREAMER_TYPE_3D_TEXT_LABEL, BusText2 , E_STREAMER_ATTACH_OFFSET_Z, 0.19);
Streamer_SetFloatData(STREAMER_TYPE_3D_TEXT_LABEL, BusText3 , E_STREAMER_ATTACH_OFFSET_Z, 0.13);
Re: CreateDynamic3DTextLabel help -
zDivine - 12.04.2013
This is because the 3D text labels change with distance.
Try creating a 3dtext label and attaching it to the player.
Re: CreateDynamic3DTextLabel help -
MichaelWharton101 - 12.04.2013
Hmm.. How would I do this?
Re: CreateDynamic3DTextLabel help -
zDivine - 12.04.2013
pawn Код:
Attach3DTextLabelToPlayer(Text3D:id, playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ);
Re: CreateDynamic3DTextLabel help -
MichaelWharton101 - 12.04.2013
For the 'id' what would I put? and for 'playerid'?
or better could you do a basic example for me? I am still kinda new to scripting
Re: CreateDynamic3DTextLabel help -
zDivine - 12.04.2013
Quote:
Originally Posted by MichaelWharton101
For the 'id' what would I put? and for 'playerid'?
|
You need to define a new Text3D at the top of your script.
This is your 'id'.
For the playerid, use "playerid" when attaching it to the player that your attaching it to.