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



TD Help? - Scenario - 15.12.2011

I am going to have a couple TD's in my script. Now, I've never really done anything with TD's, therefore I'm trying to work with them more and more.

I am going to have an announcements TD at the bottom of the screen. Here's an example:



Notice how that text is almost centered completely? Well what if I type a smaller amount of characters, or maybe even more? Will it center the text itself? If not, is there a way I can have it do this?

Please let me know!


Re: TD Help? - Gamer_Z - 15.12.2011

Your best bet would be to try, if you need to chsnge the text use SetText snd see but if alignment is set to "center" it should center itself.


Re: TD Help? - XFlawless - 16.12.2011

Try TextDrawAlignment() and TextDrawSetProportional()