SA-MP Forums Archive
Help with SetPlayerMarkerForPlayer - 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: Help with SetPlayerMarkerForPlayer (/showthread.php?tid=277190)



Help with SetPlayerMarkerForPlayer - Arrows73 - 16.08.2011

Hi!

On the wiki, there's the following code:

pawn Код:
// 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 ) );
I tried it, but it doesn't work.

The function itself definitively works and I doubt that there's a bug in my code.
I simply set the color of the player and used SetPlayerMarkerForPlayer as seen above.

And ideas? Is it possible, that this doesnt work anymore?

Thanks in advance!


Re: Help with SetPlayerMarkerForPlayer - PhoenixB - 16.08.2011

Your trying to make a Checkpoint for the player correct? // Red Marker?

https://sampwiki.blast.hk/wiki/Function:SetPlayerCheckpoint


AW: Help with SetPlayerMarkerForPlayer - Arrows73 - 16.08.2011

No, I'm trying to make the player invisible on the map while keeping the chat colour.

Probably, there is a bug in my script, I will rescript it tomorrow (I'm too tired to do it now).


Re: Help with SetPlayerMarkerForPlayer - Badger(new) - 17.08.2011

If you're going to use GetPlayerColor, you need to use SetPlayerColor first (click the link above).

If you use the color fix, which has a link on that page, the following code will work:
pawn Код:
SetPlayerColor(playerid,PlayerColors[playerid]-FF);