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



Textdraw boxes.. - Scarred - 22.10.2011

Is it possible to use one textdraw to make a black box over the entire screen? (I'm sure it is), But I use an in-game textdraw editor, and it won't let me do such a thing. Could someone give me the code for it?


Re: Textdraw boxes.. - Xx_OutLawZ_xX - 22.10.2011

So cover the whole screen in black?

Код:
	Textdraw1con = TextDrawCreate(661.000000, 0.000000, "_");
	TextDrawBackgroundColor(Textdraw1con, 255);
	TextDrawFont(Textdraw1con, 1);
	TextDrawLetterSize(Textdraw1con, 1000.000000, 1000.000000);
	TextDrawColor(Textdraw1con, -1);
	TextDrawSetOutline(Textdraw1con, 0);
	TextDrawSetProportional(Textdraw1con, 1);
	TextDrawSetShadow(Textdraw1con, 1);
	TextDrawUseBox(Textdraw1con, 1);
	TextDrawBoxColor(Textdraw1con, 255);
	TextDrawTextSize(Textdraw1con, -50.000000, 30.000000);
That should work (Not tested though)


Re: Textdraw boxes.. - Scarred - 22.10.2011

Quote:
Originally Posted by Xx_OutLawZ_xX
Посмотреть сообщение
So cover the whole screen in black?

Код:
	Textdraw1con = TextDrawCreate(661.000000, 0.000000, "_");
	TextDrawBackgroundColor(Textdraw1con, 255);
	TextDrawFont(Textdraw1con, 1);
	TextDrawLetterSize(Textdraw1con, 1000.000000, 1000.000000);
	TextDrawColor(Textdraw1con, -1);
	TextDrawSetOutline(Textdraw1con, 0);
	TextDrawSetProportional(Textdraw1con, 1);
	TextDrawSetShadow(Textdraw1con, 1);
	TextDrawUseBox(Textdraw1con, 1);
	TextDrawBoxColor(Textdraw1con, 255);
	TextDrawTextSize(Textdraw1con, -50.000000, 30.000000);
That should work (Not tested though)
Yes, that works. Thank you very much.