SA-MP Forums Archive
Textdraws - 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: Textdraws (/showthread.php?tid=223120)



Textdraws - Pooh7 - 08.02.2011

Hello

I'm making now a business and housing system for my RP server.
When player is near to some property, textdraw will create for him. I'm using 1 second timer for check.

I have 2 questions about that:
If is player 10 seconds near some property, whether textdraw to create 10 times or only 1?
How to check if player isn't near property to destroy created textdraw?

Sorry for my bad English


Re: Textdraws - Krx17 - 08.02.2011

When a player connects, create a textdraw for him and hide it. When he is near the house, use TextDrawSetString and set the text of the textdraw to the House price and etc, and use TextDrawShowForPlayer to show it to the player.