Quote:
Originally Posted by unSatisfied
1 works (haven't tried 2, mind explaining that that does in comparison to 1?)
|
1 PLAYER_MARKERS_MODE_GLOBAL Shows all the markers to everybody however the distance between them is
2 PLAYER_MARKERS_MODE_STREAMED Shows the markers only to nearby players
Quote:
Originally Posted by unSatisfied
however I don't want player markers to be enabled AT ALL unless I do the /backup command.
|
You've got to hide them when a player connects and show it for the player you want to show it for, this should be easily done at "OnPlayerConnect" or wherever you set their color at.
This should explain how, notice that the last two characters are called Alpha, setting them to "00" makes the marker invisible and to "FF" make the marker solid
pawn Код:
SetPlayerMarkerForPlayer( 42, 1, 0xFF0000FF );// Make player 42 see player 1 as a red marker
SetPlayerMarkerForPlayer( 42, 1, 0xFFFFFF00 );// Make the players marker an invisible white (chat will be white but marker will be gone).
SetPlayerMarkerForPlayer( 42, 1, ( GetPlayerColor( 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 ) | 0x000000FF ) );// 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: