SA-MP Forums Archive
how to clear textdraw after show samp - 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 clear textdraw after show samp (/showthread.php?tid=421672)



how to clear textdraw after show samp - omidi - 10.03.2013

Код:
            	format(string,sizeof(string),"{FF0000}hello world ",mrand);
	textdraw1= TextDrawCreate(326, 140,string);
	TextDrawFont(textdraw1, 1);
	TextDrawLetterSize(textdraw1, 0.3, 2.1);
TextDrawColor(textdraw1, 0xDFDFDFFF);
	TextDrawSetOutline(textdraw1, 0);
	TextDrawSetProportional(textdraw1, 1);
	TextDrawSetShadow(textdraw1, 0);
	TextDrawShowForPlayer(i, textdraw1);
how to clear text draw after its shows up like after 5 second ?
and how to make a textdraw with many colors in it like
Hello show in green coloro and wolrd in white for example
thx for help


Re: how to clear textdraw after show samp - thegreathom - 10.03.2013

Код:
how to clear text draw after its shows up like after 5 second ?
Use a timers and TextDrawHideForPlayer
Код:
and how to make a textdraw with many colors in it like
~b~= blue ~r~red ~g~=green ~w~=white.. so you will have :
pawn Код:
~b~he~w~llo ~g~world



Re: how to clear textdraw after show samp - MP2 - 10.03.2013

Hide it in a timer:

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

For colours:

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


Re: how to clear textdraw after show samp - omidi - 10.03.2013

THx i used SetTimerEx
SOLVED