SetPlayerMarkerForPlayer bug?
#1

Hi,

I use a commande /invisible it work's. I don't see the player and him don't see on the map if we are too far . But if we approach we see on the icon map. You confirm? How to resolve that.

Код:
SetPlayerMarkerForPlayer( playerid, i, ( GetPlayerColor( i ) & 0xFFFFFF00 ) );
SetPlayerMarkerForPlayer( i, playerid, ( GetPlayerColor( playerid ) & 0xFFFFFF00 ) );
Thanks.
Reply
#2

The code is perfect.
Reply
#3

But if we approach we see on the icon map.
What do u mean with this?

Paste your whole command here.
Reply
#4

did you test by using this command being far ? and then going closer ?


Код:
if(strcmp(cmd, "/invisible", true) == 0)
	{
		for(new i=0; i < MAX_PLAYERS; i++)
	    {
	        if (IsPlayerConnected(i))
	        {
	            SetPlayerMarkerForPlayer( playerid, i, ( GetPlayerColor( i ) & 0xFFFFFF00 ) );
	            SetPlayerMarkerForPlayer( i, playerid, ( GetPlayerColor( playerid ) & 0xFFFFFF00 ) );
	        }
	    }
	    return 1;
	}
Reply
#5

Test?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)