SA-MP Forums Archive
Marker & Color name - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Marker & Color name (/showthread.php?tid=218125)



Marker & Color name - Typhome - 29.01.2011

I need known how do make:

Name color is YELLOW, but minimap shows her location with yellow marker. So how do make without marker just only name color?


Respuesta: Marker & Color name - MMiz - 29.01.2011

You mean you want to make so it just wont show all the players? or a Player/PlayerColor in Specific?


Re: Marker & Color name - JaTochNietDan - 29.01.2011

I believe you would need to use this function in a loop to change the color of the marker without changing the name color.


Re: Marker & Color name - Typhome - 29.01.2011

I want just like..
I set your name color to yellow, but cant seen you at minimap (Like it wont show yellow marker at minimap). <= This i want.

Admin-on-Duty (RP)


Re: Marker & Color name - JaTochNietDan - 29.01.2011

Quote:
Originally Posted by Typhome
Посмотреть сообщение
I want just like..
I set your name color to yellow, but cant seen you at minimap (Like it wont show yellow marker at minimap). <= This i want.
Well then you need the function that I linked to.

pawn Код:
// 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 ) );
This contains all of the information that you need.