SetPlayerMarkerForPlayer
#1

Hi,

I set SetPlayerMarkerForPlayer and i use color GetPlayerColor, but i need to make that GetPlayerColor lighter.
Reply
#2

Mess a little with alpha values?
Reply
#3

Yes, but how use it in GetPlayerColor function?
Reply
#4

Transparency only works for radar blips (markers) - not player colours (chat, scoreboard and nametags).

You can make it lighter though.
Reply
#5

But that using possible?

SetPlayerMarkerForPlayer( 42, 1, ( GetPlayerColor( 1 ) | 0x000000FF ) );

What mean | and & ? because there is

SetPlayerMarkerForPlayer( 42, 1, ( GetPlayerColor( 1 ) & 0xFFFFFF00 ) );

If i write 0xFFFFFF55 it makes transparent 55 ?
Reply
#6

Quote:
Originally Posted by Banditukas
Посмотреть сообщение
But that using possible?

SetPlayerMarkerForPlayer( 42, 1, ( GetPlayerColor( 1 ) | 0x000000FF ) );

What mean | and & ? because there is

SetPlayerMarkerForPlayer( 42, 1, ( GetPlayerColor( 1 ) & 0xFFFFFF00 ) );

If i write 0xFFFFFF55 it makes transparent 55 ?
http://en.wikipedia.org/wiki/Bitwise...wise_operators
Reply
#7

Hm.. I don't understand what they mean in my given codes.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)