show player markers
#3

pawn Код:
ShowPlayerMarker(2)
or
pawn Код:
ShowPlayerMarker(PLAYER_MARKERS_MODE_STREAMED)
will just show player markers, if the players are streamed to the observing player.

If you want to hide specified Markers, you can use

pawn Код:
SetPlayerMarkerForPlayer(playerid, toplayerid, GetPlayerColor(playerid)&0xFFFFFF00)
which sets the alpha channel to 0, and the streamed player will have an invisible marker to the observing player.

To show a marker, you have to do
pawn Код:
SetPlayerMarkerForPlayer(playerid, toplayerid, GetPlayerColor(playerid))
which uses the original set alpha channel or
pawn Код:
SetPlayerMarkerForPlayer(playerid, toplayerid, (GetPlayerColor(playerid)&0xFFFFFF00)|my_alpha)
which uses a custom alpha channel value.

You have to re-call SetPlayerMarkerForPlayer inside OnPlayerStreamIn and OnPlayerStreamOut to re-sync markers to observing players.
Reply


Messages In This Thread
show player markers problem - by rouzbeh - 29.07.2013, 14:13
Re: show player markers - by cessil - 30.07.2013, 02:08
AW: show player markers - by BigETI - 30.07.2013, 02:26
Re: show player markers - by rouzbeh - 30.07.2013, 15:22
AW: show player markers - by BigETI - 28.08.2013, 14:33

Forum Jump:


Users browsing this thread: 1 Guest(s)