help . Setplayercolor - 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: help . Setplayercolor (
/showthread.php?tid=442055)
help . Setplayercolor -
morocco - 05.06.2013
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
Re: help . Setplayercolor -
DobbysGamertag - 05.06.2013
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 ) );
Re : Re: help . Setplayercolor -
morocco - 05.06.2013
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
Re : help . Setplayercolor -
morocco - 05.06.2013
Please help me
Re: help . Setplayercolor -
scout322 - 05.06.2013
Try difrent color code.
Re : Re: help . Setplayercolor -
morocco - 05.06.2013
Quote:
Originally Posted by scout322
Try difrent color code.
|
How ?
Re: help . Setplayercolor -
Vince - 05.06.2013
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
Re : Re: help . Setplayercolor -
morocco - 06.06.2013
Quote:
Originally Posted by Vince
|
i don't test it , but i think this will be work
Thank you so much !!