Jump to content

Infistar PlotPoleMarkers


Ghostman

Recommended Posts

23 minutes ago, Ghostman said:

Infistar display on map only Plot and grid green circle, i need add displey owner plot

 

What? You mean you wanna know the owner of a plot (his name)?

infiSTAR is unable to do this.

 

Link to comment
Share on other sites

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

Spoiler

DZE_PlotManagementAdmins = ["765","765"];

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

4 hours ago, 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';
		};
	};

 

Thx dude:D

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...