markers
#1

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

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
Reply
#3

0xFFFFFF is white in hex code.
Also make sure you use the right alpha value
0xFFFFFF00
instead of 00 put FF for full opacity
Reply
#4

I want to do player color will be grey, but his marker will be not see
Reply
#5

Quote:
Originally Posted by belfa96
View Post
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
Reply
#6

Then try change 0x808080AA to 0x808080FF
Reply
#7

#define COLOR_GREY 0x808080FF
Reply
#8

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;
}
Reply
#9

I test with SendClientMessage

0xFFFFFF00

Here is not color which player can not seen it'is just white color...

0xFFFFFFFF

too

0x00000000

too
Reply
#10

Quote:
Originally Posted by MacT
View Post
Copied my code tried make smartface? Oh god...
No... just no.
Reply
#11

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
Reply
#12

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

Are you try add grey color to both?
Reply
#14

No, i can't to test it with other persons now.
Reply
#15

UP THREAD
Reply
#16

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

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

Answer my question. Did you test this with MORE persons on the server?
Reply
#19

Yes.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)