SA-MP Forums Archive
SetPlayerMarkerForPlayer bug? - 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)
+--- Thread: SetPlayerMarkerForPlayer bug? (/showthread.php?tid=352601)



SetPlayerMarkerForPlayer bug? - ombre - 20.06.2012

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.


Re: SetPlayerMarkerForPlayer bug? - [MM]RoXoR[FS] - 20.06.2012

The code is perfect.


Re: SetPlayerMarkerForPlayer bug? - Faisal_khan - 20.06.2012

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

Paste your whole command here.


Re : SetPlayerMarkerForPlayer bug? - ombre - 20.06.2012

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;
	}



Re : SetPlayerMarkerForPlayer bug? - ombre - 22.06.2012

Test?