SA-MP Forums Archive
Question about Team Blips - 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: Question about Team Blips (/showthread.php?tid=74939)



Question about Team Blips - westre - 27.04.2009

Hello there, I'm trying to figure out how to make that teams can only see their teamblips.
For example if you're in the police, you can see other police members on the minimap and not the civilians, gangs et cetera.
And if you're a gangmember you can only see your gang members' blips on the minimap, not the civilians nor the police et cetera.

Код:
public OnPlayerSpawn(playerid)
{
for ( new i = 0; i < MAX_PLAYERS; i ++) 
  {
	if (PlayerInfo[i][pMember] == PlayerInfo[playerid][pMember])
			{
   		if(PlayerInfo[i][pMember] == 1)
			 		{
	 				 SetPlayerMarkerForPlayer(playerid, i, GetPlayerColor(i) & 0xFFFFFFAA);
                       }
					else
					{
  				    SetPlayerMarkerForPlayer(playerid, i, GetPlayerColor(i) & 0xFFFFFF00);
				 	}
	 				if(PlayerInfo[i][pMember] == 2)
			 		{
			 		SetPlayerMarkerForPlayer(playerid, i, GetPlayerColor(i) & 0xFFFFFFAA);
  				    }
					else
					{
   				SetPlayerMarkerForPlayer(playerid, i, GetPlayerColor(i) & 0xFFFFFF00);
                      }
 				 if(PlayerInfo[i][pMember] == 3)
			 		{
			 		SetPlayerMarkerForPlayer(playerid, i, GetPlayerColor(i) & 0xFFFFFFAA);
  				   }
					else
					{
   				SetPlayerMarkerForPlayer(playerid, i, GetPlayerColor(i) & 0xFFFFFF00);
                   }
   		       }
 		}
	return 1;
}
I apologize about the indentation.


Re: Question about Team Blips - westre - 27.04.2009

Anyone?