how to make color more transparency - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how to make color more transparency (
/showthread.php?tid=244988)
how to make color more transparency -
jame42 - 29.03.2011
RR - Two values for the red (Where FF is max, and 00 is the lowest).
GG - Two values for the green (Where FF is max, and 00 is the lowest).
BB - Two values for the blue (Where FF is max, and 00 is the lowest).
AA - Two values for the transparency (Where FF is max, and 00 is the lowest). <----------
i want to getplayercolor(playerid,variable)
and setplayercolor more transparency
how to do this please help me
sorry for my english . it's very fool
Re: how to make color more transparency -
Joe Staff - 29.03.2011
If I had to guess...
pawn Код:
SetPlayerColor(playerid,GetPlayerColor(playerid)- (GetPlayerColor(playerid)%256));
Not tested
Re: how to make color more transparency -
RyDeR` - 29.03.2011
You can use a RGBA to int converter function implemented to PAWN to make it easy for using colors with different opacity and easily adjust colors.
Re: how to make color more transparency -
Gamer_Z - 29.03.2011
yes, teoritically:
Код:
0xAE34EE22
where:
AE is the RED value
34 green
EE blue
and
22 is the transparency , 00 - invisible , 11 very transparent , FF - no transparency
Re: how to make color more transparency -
jame42 - 30.03.2011
how to store hex color in variable ?
and please help me
if my color is 0xFF00011 (BLIGHT RED)
i want to make it to dark RED in a little dark
and opposite
i has dark red i want to make it bright red