Markets Won't Disappear
#1

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

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

    return 1;
}
Reply
#3

Sorry that doesn't help ..

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

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

pawn Код:
ShowPlayerMarkers(0);
Reply
#5

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
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)