how can i change colour
#1

Код:
	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
Reply
#2

use timer
Reply
#3

try
pawn Код:
SetTimerEx("color", 1000, true, "i", playerid);
pawn Код:
forward color()

public color()
{
    TextDrawColor(text, 0x0000FFFF); //this is blue
    return 1;
}
Reply
#4

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.
Reply
#5

#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?
Reply
#6

This may help you: https://sampwiki.blast.hk/wiki/Colors_Li...ransparency.29
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)