SA-MP Forums Archive
Markets Won't Disappear - 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: Markets Won't Disappear (/showthread.php?tid=107523)



Markets Won't Disappear - Klid - 10.11.2009

Hey,

I've got this in OnPlayerConnect(playerid)

Код:
for(new i = 0; i < GetMaxPlayers(); i++)
{
 	if(IsPlayerConnected(i) == 1)
  	{
   		SetPlayerMarkerForPlayer(i, playerid, (GetPlayerColor(playerid) & 0xFFFFFF00 ));
  	}
}
Note : I do NOT have ShowPlayerMarkers anywhere in my script

But despite me doing this ... I can still see other players markers on the radar


Kaleem


Re: Markets Won't Disappear - Peter_Corneile - 10.11.2009

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    DisablePlayerCheckpoint(playerid);

    return 1;
}



Re: Markets Won't Disappear - Klid - 10.11.2009

Sorry that doesn't help ..

Tried but I can still see other people's map blips when I enter the game


Re: Markets Won't Disappear - Peter_Corneile - 10.11.2009

Oops i posted wrong sorry .. If you want to disable player markers then add this under OnGamemodeInit

pawn Код:
ShowPlayerMarkers(0);



Re: Markets Won't Disappear - Klid - 10.11.2009

I know mate, that works perfect, but theres specific times when I need like one person to be able to see someones map blip...

But I can't do that because that function Disables map blips perminently


Re: Markets Won't Disappear - Peter_Corneile - 10.11.2009

This is an example
pawn Код:
if (strcmp("/blabla", cmdtext, true, 7) == 0)

    {
    for(new i = 0; i < MAX_PLAYERS; i++)
  {
    ShowPlayerNameTagForPlayer(playerid, i, false);
    SetPlayerMarkerForPlayer(playerid, i, (GetPlayerColor(i)&0xFFFFFF00));
  }
    SendClientMessage(playerid,Color,"Command works");
    SetPlayerMarkerForPlayer( 42, 1, ( GetPlayerColor( 1 ) & 0xFFFFFF00 ) );


    return 1;
    }
For example if you use the above command then the marker will be in visible , you can edit it as you want