Help with SetPlayerMarkerForPlayer
#1

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!
Reply
#2

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

https://sampwiki.blast.hk/wiki/Function:SetPlayerCheckpoint
Reply
#3

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).
Reply
#4

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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)