help . Setplayercolor
#1

hi

i change this Color
pawn Код:
#define TCOLOR_LIGHTBLUE 0x2B77A100
To
pawn Код:
#define TCOLOR_NEWSR 0xFF80FFFF
my problem is :

after change this color , if anyone him Name on this color TCOLOR_NEWSR , We can see this color on map ( radar)

Please how to fix , for no see this color on map


Sorry for my english
Reply
#2

From the sa-mp wiki. Hope it helps

pawn Код:
// Make player 42 see player 1 as a red marker
SetPlayerMarkerForPlayer( 42, 1, 0xFF0000FF );
 
// Make the players marker an invisible white (chat will be white but marker will be gone).
SetPlayerMarkerForPlayer( 42, 1, 0xFFFFFF00 );
 
// Make the players marker invisible to the player while keeping chat colour the same. Will only work correctly if SetPlayerColor has been used:
SetPlayerMarkerForPlayer( 42, 1, ( GetPlayerColor( 1 ) & 0xFFFFFF00 ) );
 
// Make the players marker fully opaque (solid) to the player while keeping chat colour the same. Will only work correctly if SetPlayerColor has been used:
SetPlayerMarkerForPlayer( 42, 1, ( GetPlayerColor( 1 ) | 0x000000FF ) );
Reply
#3

Quote:
Originally Posted by DobbysGamertag
Посмотреть сообщение
From the sa-mp wiki. Hope it helps

pawn Код:
// Make player 42 see player 1 as a red marker
SetPlayerMarkerForPlayer( 42, 1, 0xFF0000FF );
 
// Make the players marker an invisible white (chat will be white but marker will be gone).
SetPlayerMarkerForPlayer( 42, 1, 0xFFFFFF00 );
 
// Make the players marker invisible to the player while keeping chat colour the same. Will only work correctly if SetPlayerColor has been used:
SetPlayerMarkerForPlayer( 42, 1, ( GetPlayerColor( 1 ) & 0xFFFFFF00 ) );
 
// Make the players marker fully opaque (solid) to the player while keeping chat colour the same. Will only work correctly if SetPlayerColor has been used:
SetPlayerMarkerForPlayer( 42, 1, ( GetPlayerColor( 1 ) | 0x000000FF ) );
No , i see this color just after change it

Do you understand ?

When this color #define TCOLOR_LIGHTBLUE 0x2B77A100 , we did not see color on map
Reply
#4

Please help me
Reply
#5

Try difrent color code.
Reply
#6

Quote:
Originally Posted by scout322
Посмотреть сообщение
Try difrent color code.

How ?
Reply
#7

Change the last two digits of your new color from FF to 00. Pretty much said above. https://sampwiki.blast.hk/wiki/Colors#Al...ransparency.29
Reply
#8

Quote:
Originally Posted by Vince
Посмотреть сообщение
Change the last two digits of your new color from FF to 00. Pretty much said above. https://sampwiki.blast.hk/wiki/Colors#Al...ransparency.29
i don't test it , but i think this will be work


Thank you so much !!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)