SA-MP Forums Archive
Bugs at the text draw. - 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: Bugs at the text draw. (/showthread.php?tid=580080)



Bugs at the text draw. - SpikeSpigel - 02.07.2015

Hi there . I have a samp server and if you go in front of a 24/7 or anything it will show you a textdraw in the right place which contains The name , tha price of it and the type.

Like that.

http://i.imgur.com/tTreukp.png

And if you can go hundred and milion of metters from the shop.. it still will be shown.

http://i.imgur.com/uRlMoMq.jpg

So, how do I repair that ? :-s


Re: Bugs at the text draw. - Suicidal.Banana - 02.07.2015

You can use IsPlayerInRangeOfPoint to determine if a player is within a certain range ( = distance) of a point ( = x y z coordinates)
Then use that to decide if you should show the message or not