Show 3d text label? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Show 3d text label? (
/showthread.php?tid=243359)
Show 3d text label? -
The Woody - 22.03.2011
I have a "Create3DTextLabel" and i only want people to see it if they are in range of point. How would i make that?
pawn Код:
if(IsPlayerInRangeOfPoint(i, 5, Houses[h][hExteriorX], Houses[h][hExteriorY], Houses[h][hExteriorZ]))
{
// Show 3DTextLabel ??
}
And if i just create a new text label it doesn't show for some reason. So i guess i have to show it not create it :/
im confused. If you dont understand what im asking for then let me know
Re: Show 3d text label? -
Sascha - 22.03.2011
what about this:
https://sampwiki.blast.hk/wiki/Create3DTextLabel
When you create a label you have to set the range in which players will see it..
you don't need to check for anything..
e.g.
pawn Код:
Create3DTextLabel("Text", xcoord, ycoord, zcoord, RANGE, -1, 0);
Re: Show 3d text label? -
The Woody - 22.03.2011
Quote:
Originally Posted by Sascha
what about this:
https://sampwiki.blast.hk/wiki/Create3DTextLabel
When you create a label you have to set the range in which players will see it..
you don't need to check for anything..
e.g.
pawn Код:
Create3DTextLabel("Text", xcoord, ycoord, zcoord, RANGE, -1, 0);
|
Thanks for your reply, but the "RANGE" i think that is how long away you can see the text. But im not sure.
EDIT: yes that "RANGE" is:
Quote:
DrawDistance The distance from where you are able to see the 3D Text Label
|
Re: Show 3d text label? -
Sascha - 22.03.2011
yes.. you can set it for example to 100.00 and you'll see it in a distance of 100 (gta meters or whatever)..
or to 2.00 and you'll have to stand right infront of it...
Re: Show 3d text label? -
The Woody - 22.03.2011
Quote:
Originally Posted by Sascha
yes.. you can set it for example to 100.00 and you'll see it in a distance of 100 (gta meters or whatever)..
or to 2.00 and you'll have to stand right infront of it...
|
Im going to play around with it. Thanks for helping me i really appreciate it.
Re: Show 3d text label? -
legodude - 22.03.2011
tip a gta meter is +- the same as a real life meter. the truth is about 1.90/ 2.00 meters long...
Re: Show 3d text label? -
The Woody - 22.03.2011
Is there a way to update a 3d text label without having to type in new text?
so it just updates the id.
https://sampwiki.blast.hk/wiki/Update3DTextLabelText
Quote:
Originally Posted by legodude
tip a gta meter is +- the same as a real life meter. the truth is about 1.90/ 2.00 meters long...
|
Thanks thats usefull :P