how can i change colour - 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 can i change colour (
/showthread.php?tid=548781)
how can i change colour -
XaibBaba - 02.12.2014
Код:
MainMenuTxtdraw[4] = TextDrawCreate(779.000000, 206.000000, "'");
TextDrawAlignment(MainMenuTxtdraw[4], 3);
TextDrawBackgroundColor(MainMenuTxtdraw[4], 255);
TextDrawFont(MainMenuTxtdraw[4], 2);
TextDrawLetterSize(MainMenuTxtdraw[4], 0.239999, 10.900000);
TextDrawColor(MainMenuTxtdraw[4], -1061109505);
TextDrawSetOutline(MainMenuTxtdraw[4], 0);
TextDrawSetProportional(MainMenuTxtdraw[4], 1);
TextDrawSetShadow(MainMenuTxtdraw[4], 1);
TextDrawUseBox(MainMenuTxtdraw[4], 1);
TextDrawBoxColor(MainMenuTxtdraw[4], 170);
TextDrawTextSize(MainMenuTxtdraw[4], 146.000000, 45.000000);
i want to make it blue transperant colour txt draw how can i help me please
Re: how can i change colour -
UltraScripter - 02.12.2014
use timer
Re: how can i change colour -
UltraScripter - 02.12.2014
try
pawn Код:
SetTimerEx("color", 1000, true, "i", playerid);
pawn Код:
forward color()
public color()
{
TextDrawColor(text, 0x0000FFFF); //this is blue
return 1;
}
Re: how can i change colour -
Lordzy - 02.12.2014
Using TextDrawColor, set it's color using transparent color codes. You can find color codes at colorpicker.com or simply ****** it. I found a small snippet that Emmet posted which can set a color's transparency.
http://forum.sa-mp.com/showpost.php?...postcount=4457
@UltraScripter - Stop double posting, I've noticed you doing that on several topics. It's actually against the forum rules here which can even get you banned.
Re: how can i change colour -
XaibBaba - 02.12.2014
#B3A4DB what is the alpha part of this colour how could i make it transperant and if i set timer so how i will add it to my txtdraw?
Re: how can i change colour -
Larceny - 02.12.2014
This may help you:
https://sampwiki.blast.hk/wiki/Colors_Li...ransparency.29