markers -
audriuxxx - 25.05.2014
Hi,
#define COLOR_GREY 0x808080AA
Code:
SetPlayerColor( playerid, COLOR_GREY);
new i;
foreach(i : Player)
{
SetPlayerMarkerForPlayer(i, playerid, 0xFFFFFF00 );
}
Player marker color is white.. And he self is white. How it'is possible?
Re: markers -
MacT - 25.05.2014
pawn Code:
SetPlayerColor( playerid, COLOR_GREY);
new i;
foreach(i : Player)
{
SetPlayerMarkerForPlayer(i, playerid, 0x808080AA);
}
pawn Code:
SetPlayerColor( playerid, COLOR_GREY);
{
new i;
foreach(i : Player)
{
SetPlayerMarkerForPlayer(i, playerid, COLOR_GREY);
}
return 1;
}
You forgot change inside function hex color
Re: markers -
belfa96 - 25.05.2014
0xFFFFFF is white in hex code.
Also make sure you use the right alpha value
0xFFFFFF
00
instead of 00 put FF for full opacity
Re: markers -
audriuxxx - 25.05.2014
I want to do player color will be grey, but his marker will be not see
Re: markers -
MacT - 25.05.2014
Quote:
Originally Posted by belfa96
0xFFFFFF is white in hex code.
Also make sure you use the right alpha value
0xFFFFFF00
instead of 00 put FF for full opacity
|
'
It's 0xRRGGBBAA, AA being transparency, so white would be 0xFFFFFFAA , FF being the lowest transparency thus making the text most visible and this shoul be 0xFFFFFFFF
Re: markers -
MacT - 25.05.2014
Then try change 0x808080AA to 0x808080FF
Re: markers -
belfa96 - 25.05.2014
#define COLOR_GREY 0x808080FF
Re: markers -
MacT - 25.05.2014
Copied my code tried make smartface? Oh god...
Hereyou get full code know:
pawn Code:
#define COLOR_GREY 0x808080FF
SetPlayerColor( playerid, COLOR_GREY);
{
new i;
foreach(i : Player)
{
SetPlayerMarkerForPlayer(i, playerid, COLOR_GREY);
}
return 1;
}
And if you want wihout definitions:
pawn Code:
SetPlayerColor( playerid, COLOR_GREY);
{
new i;
foreach(i : Player)
{
SetPlayerMarkerForPlayer(i, playerid, 0x808080FF);
}
return 1;
}
Re: markers -
audriuxxx - 25.05.2014
I test with SendClientMessage
0xFFFFFF00
Here is not color which player can not seen it'is just white color...
0xFFFFFFFF
too
0x00000000
too
Re: markers -
belfa96 - 25.05.2014
Quote:
Originally Posted by MacT
Copied my code tried make smartface? Oh god...
|
No... just no.
Re: markers -
MacT - 25.05.2014
Why you dont try copy my code and test it?
Okay, try this one then 0x7F7F7FAA, believe that hex color work correctly in my system
Re: markers -
audriuxxx - 25.05.2014
I can't now test with more players, but say how your script works. Does it set player color to grey? but marker will gone?
Re: markers -
MacT - 25.05.2014
Are you try add grey color to both?
Re: markers -
audriuxxx - 25.05.2014
No, i can't to test it with other persons now.
Re: markers -
audriuxxx - 26.05.2014
UP THREAD
Re: markers -
rappy93 - 26.05.2014
Did you test it with someone else ? Because if you are the only one on the server the color will always look white although it is not.
Re: markers -
audriuxxx - 26.05.2014
SetPlayerMarkerForPlayer i try all colors but i can't to get that color where is unable to see, even if you make color with 00 trans still color is in same.
Re: markers -
rappy93 - 26.05.2014
Answer my question. Did you test this with MORE persons on the server?
Re: markers -
audriuxxx - 26.05.2014
Yes.