SetPlayerMarkerForPlayer
From SA-MP Wiki
SetPlayerMarkerForPlayer
Changes the color of a player's marker on another player's radar.
(playerid, showplayerid, color)
| playerid | The player whose view you want to change |
| showplayerid | The player whose color will be changed |
| color | New color. Set the alpha part to 00 for an invisible blip. This works because 00 will set the transparency to nothing, which is invisible. |
This function does not return a specific value.
// 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 ) );
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- SetPlayerColor: Set a player's color.
- ShowPlayerNameTagForPlayer: Show or hide a nametag for a certain player.
