SA-MP Forums Archive
how to create this type of box in the textdraw?? - 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: how to create this type of box in the textdraw?? (/showthread.php?tid=365202)



how to create this type of box in the textdraw?? - Gamer_007 - 02.08.2012

Can anyone tell em the color code and how to create this type of box in textdraws??


here is the link for image:http://miscpix.com/uploaded.php?id=4ngbt


Re: how to create this type of box in the textdraw?? - Avi57 - 02.08.2012

https://sampwiki.blast.hk/wiki/TextDrawCreate


Re: how to create this type of box in the textdraw?? - [MM]RoXoR[FS] - 02.08.2012

TextDrawUseBox

I would suggest you to use this filterscript to easily create TD's

Zamaroht's Textdraw Editor


Re: how to create this type of box in the textdraw?? - Gamer_007 - 02.08.2012

Quote:
Originally Posted by [MM]RoXoR[FS]
Посмотреть сообщение
TextDrawUseBox

I would suggest you to use this filterscript to easily create TD's

Zamaroht's Textdraw Editor
i used both but when i use TextDrawCreateBox it creates the box a full line.Tell em how to resize it.


Re: how to create this type of box in the textdraw?? - SEnergy - 02.08.2012

Quote:
Originally Posted by Gamer_007
Посмотреть сообщение
i used both but when i use TextDrawCreateBox it creates the box a full line.Tell em how to resize it.
TextDrawTextSize(draw, x, y);


Re: how to create this type of box in the textdraw?? - Gamer_007 - 02.08.2012

Quote:
Originally Posted by SEnergy
Посмотреть сообщение
TextDrawTextSize(draw, x, y);
I m talking about the box not the text


Re: how to create this type of box in the textdraw?? - SEnergy - 02.08.2012

Quote:
Originally Posted by Gamer_007
Посмотреть сообщение
I m talking about the box not the text
did you try it?


Re: how to create this type of box in the textdraw?? - oKzrh - 02.08.2012

When you resize the text, the box also resizes . Try it out.
Use Zamaroth's Text Editor to test it without putting it in your mod.


Re: how to create this type of box in the textdraw?? - oKzrh - 02.08.2012

Here's a quote from the wiki.
Quote:
TextDrawTextSize - "Change the size of a textdraw (box if TextDrawUseBox is enabled..."

Just give it a try man!


Re: how to create this type of box in the textdraw?? - SEnergy - 02.08.2012

175, 5
i'm using this for bigger box

125, 5 for smaller

pawn Код:
TextDrawUseBox(draw, 1);
    TextDrawBoxColor(draw, 0x00000055);
    TextDrawTextSize(draw, 175, 5);
    TextDrawShowForPlayer(playerid, draw);
for cheat-like box