SA-MP Forums Archive
SetPlayerMarkerForPlayer - 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)
+--- Thread: SetPlayerMarkerForPlayer (/showthread.php?tid=573628)



SetPlayerMarkerForPlayer - Banditukas - 09.05.2015

Hi,

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


Re: SetPlayerMarkerForPlayer - [KHK]Khalid - 09.05.2015

Mess a little with alpha values?


Re: SetPlayerMarkerForPlayer - Banditukas - 09.05.2015

Yes, but how use it in GetPlayerColor function?


Re: SetPlayerMarkerForPlayer - MP2 - 09.05.2015

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

You can make it lighter though.


Re: SetPlayerMarkerForPlayer - Banditukas - 09.05.2015

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 ?


Re: SetPlayerMarkerForPlayer - Konstantinos - 09.05.2015

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


Re: SetPlayerMarkerForPlayer - Banditukas - 09.05.2015

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