Jump to content

Infistar PlotPoleMarkers


Ghostman

Recommended Posts

In your custom configVariables.sqf find this and add your steam uid 

  Reveal hidden contents

This has nothing to do with Infistar but you can tp to the plot and check this way. 

Link to comment
Share on other sites

  • 2 weeks later...

salival helped me to edit the AT.sqf to show owners name on plot poles.

this is the section that needs changed...  look for "adminPlotPole =" and replace with the following.

 

adminPlotPole =
	{
		if !(('ItemGPS' in items player) || ('ItemMap' in items player))then
		{
			_config = ['ItemGPS'];
			_isOK = [player,_config] call BIS_fnc_invAdd;
		};
		adminPlotPoles =
		{
			while{markadPlotPole == 1}do
			{
				ADMIN_PlotPole_LIST = [] + (allMissionObjects 'Plastic_Pole_EP1_DZ');
				if(markadPlotPole == 0)exitWith {};
				for '_i' from 0 to (count ADMIN_PlotPole_LIST)-1 do
				{
					if(markadPlotPole == 0)exitWith {};
					
					deleteMarkerLocal ('adminPlotPoles' + (str _i));
					_selected = ADMIN_PlotPole_LIST select _i;
					_vm = createMarkerLocal [('adminPlotPoles' + (str _i)), getPos _selected];
					_vm setMarkerAlphaLocal 0.8;
					_vm setMarkerBrushLocal 'Grid';
					if(isNil 'DZE_PlotPole')then{DZE_PlotPole = [30,45];};
					_vm setMarkerSizeLocal [DZE_PlotPole select 0,DZE_PlotPole select 0];
					_vm setMarkerShapeLocal 'ELLIPSE';
					_vm setMarkerColorLocal 'ColorGreen';
					
					_k = _i + 4000;
					deleteMarkerLocal ('adminPlotPoles' + (str _k));
					_vm = createMarkerLocal [('adminPlotPoles' + (str _k)), getPos _selected];
					_vm setMarkerTypeLocal 'mil_start';
					_vm setMarkerSizeLocal [0.5, 0.5];
					_friends = _selected getVariable ["plotfriends",[]];
                    _vm setMarkerTextLocal format [" %1",toString ((_friends select 0) select 1)];
					_vm setMarkerColorLocal 'ColorBlack';
					
					if(markadPlotPole == 0)exitWith {};
				};
				if(markadPlotPole == 0)exitWith {};
				uiSleep 15;
			};
			for '_i' from 0 to 8888 do {deleteMarkerLocal ('adminPlotPoles' + (str _i));deleteMarkerLocal ('adminPlotPoles' + (str (_i+4000)));};
		};
		if(isNil 'markadPlotPole')then{markadPlotPole = 0;};
		if(markadPlotPole == 0)then
		{
			markadPlotPole = 1;
			hint '2D Map PlotPoleMarker Activated';
			[] spawn adminPlotPoles;
			
			_sl = format['%1 PlotPoleMarker Activated',name player];
			PVAH_WriteLogReq = [player,toArray _sl];
			publicVariableServer 'PVAH_WriteLogReq';
		}
		else
		{
			markadPlotPole = 0;
			hint '2D Map PlotPoleMarker Disabled';
			
			for '_i' from 0 to 8888 do {deleteMarkerLocal ('adminPlotPoles' + (str _i));deleteMarkerLocal ('adminPlotPoles' + (str (_i+4000)));};
			
			_sl = format['%1 PlotPoleMarker Disabled',name player];
			PVAH_WriteLogReq = [player,toArray _sl];
			publicVariableServer 'PVAH_WriteLogReq';
		};
	};

 

Link to comment
Share on other sites

  On 6/13/2017 at 5:28 PM, kingpapawawa said:

salival helped me to edit the AT.sqf to show owners name on plot poles.

this is the section that needs changed...  look for "adminPlotPole =" and replace with the following.

 

adminPlotPole =
	{
		if !(('ItemGPS' in items player) || ('ItemMap' in items player))then
		{
			_config = ['ItemGPS'];
			_isOK = [player,_config] call BIS_fnc_invAdd;
		};
		adminPlotPoles =
		{
			while{markadPlotPole == 1}do
			{
				ADMIN_PlotPole_LIST = [] + (allMissionObjects 'Plastic_Pole_EP1_DZ');
				if(markadPlotPole == 0)exitWith {};
				for '_i' from 0 to (count ADMIN_PlotPole_LIST)-1 do
				{
					if(markadPlotPole == 0)exitWith {};
					
					deleteMarkerLocal ('adminPlotPoles' + (str _i));
					_selected = ADMIN_PlotPole_LIST select _i;
					_vm = createMarkerLocal [('adminPlotPoles' + (str _i)), getPos _selected];
					_vm setMarkerAlphaLocal 0.8;
					_vm setMarkerBrushLocal 'Grid';
					if(isNil 'DZE_PlotPole')then{DZE_PlotPole = [30,45];};
					_vm setMarkerSizeLocal [DZE_PlotPole select 0,DZE_PlotPole select 0];
					_vm setMarkerShapeLocal 'ELLIPSE';
					_vm setMarkerColorLocal 'ColorGreen';
					
					_k = _i + 4000;
					deleteMarkerLocal ('adminPlotPoles' + (str _k));
					_vm = createMarkerLocal [('adminPlotPoles' + (str _k)), getPos _selected];
					_vm setMarkerTypeLocal 'mil_start';
					_vm setMarkerSizeLocal [0.5, 0.5];
					_friends = _selected getVariable ["plotfriends",[]];
                    _vm setMarkerTextLocal format [" %1",toString ((_friends select 0) select 1)];
					_vm setMarkerColorLocal 'ColorBlack';
					
					if(markadPlotPole == 0)exitWith {};
				};
				if(markadPlotPole == 0)exitWith {};
				uiSleep 15;
			};
			for '_i' from 0 to 8888 do {deleteMarkerLocal ('adminPlotPoles' + (str _i));deleteMarkerLocal ('adminPlotPoles' + (str (_i+4000)));};
		};
		if(isNil 'markadPlotPole')then{markadPlotPole = 0;};
		if(markadPlotPole == 0)then
		{
			markadPlotPole = 1;
			hint '2D Map PlotPoleMarker Activated';
			[] spawn adminPlotPoles;
			
			_sl = format['%1 PlotPoleMarker Activated',name player];
			PVAH_WriteLogReq = [player,toArray _sl];
			publicVariableServer 'PVAH_WriteLogReq';
		}
		else
		{
			markadPlotPole = 0;
			hint '2D Map PlotPoleMarker Disabled';
			
			for '_i' from 0 to 8888 do {deleteMarkerLocal ('adminPlotPoles' + (str _i));deleteMarkerLocal ('adminPlotPoles' + (str (_i+4000)));};
			
			_sl = format['%1 PlotPoleMarker Disabled',name player];
			PVAH_WriteLogReq = [player,toArray _sl];
			publicVariableServer 'PVAH_WriteLogReq';
		};
	};

 

Expand  

Thx dude:D

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...