SA-MP Forums Archive
LA-RP /duty color: How to make the blip dissapear from minimap?? - 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: LA-RP /duty color: How to make the blip dissapear from minimap?? (/showthread.php?tid=109461)



LA-RP /duty color: How to make the blip dissapear from minimap?? - SWAT667 - 20.11.2009

Okay i tried to make each cop gets blue colored names when they go on /duty,but after testing it,i found out that he can be seen on the map.How to make it invisible or cant be seen ?

The lines :
Код:
if(strcmp(cmd, "/duty", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
			GetPlayerName(playerid, sendername, sizeof(sendername));
			if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
			{
				if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerInfo[playerid][pLocal] != 255)
				{
					if(OnDuty[playerid]==0)
			    {
			      if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
			      {
				  		format(string, sizeof(string), "* Officer %s took a Badge and a Gun from his locker.", sendername);
						}
						else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
			      {
				  		format(string, sizeof(string), "* Agent %s took a Badge and a Gun from his locker.", sendername);
						}
						ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
						SafeGivePlayerWeapon(playerid, 3, 1);
						SafeGivePlayerWeapon(playerid, 41, 500);
						SetPlayerArmour(playerid, 100);
						SetPlayerColor(playerid,COP_DUTY_COLOR);
						OnDuty[playerid] = 1;
					}



Re: LA-RP /duty color: How to make the blip dissapear from minimap?? - Burridge - 20.11.2009

Ask in that script's topic.