Jump to content

Extended Safezone Script - Working!


Friendly

Recommended Posts

Here is how to make it serverside.

Download pbo file here https://www.dropbox.com/s/5m4qg1ucch116f6/Safe_Zone.pbo?dl=0

Unpack Safe_Zone.pbo and add your safe zone cords inside file init.sqf 

Pack it back to pbo and add to @epochhive\addons

Run it from MPMission init.sqf 

 

[] execVM "\q\addons\Safe_Zone\init.sqf";

 

There is no need any be filters

Can someone repost Sadboy's server side PBO? It is no longer in his dropbox folder.

Link to comment
Share on other sites

  • 2 weeks later...

infistar blocking the message "you can not fire in a safezone"   any reason why ??  as an admin it shows fine but as a normal player you have god mode but no messages when firing your weapon 

If you are using infistar try and see if turning the setting in run.sqf to false fixes it.

/*  Notification check   */ _UNC = true;	/* true or false */	/* _UNC = false; on AltisLife! */
Link to comment
Share on other sites

 

If you are using infistar try and see if turning the setting in run.sqf to false fixes it.

/*  Notification check   */ _UNC = true;	/* true or false */	/* _UNC = false; on AltisLife! */

 

 

/*  Notification check   */ _UNC = false;   already false :-s its doing my head in lol works fine for admins 

 

also :

/*  revert allowDamage   */ _RAD = false;	/* true or false */	/* if you have safezones using "player allowDamage false;" or similar.. set _RAD = false; */
/*  HandleDamage check   */ _HDC = false;	/* true or false */	/* *experimental + Epoch only* - probably publicVariableServer spam but no more godmode hackers. */
/*  Revert HandleDamage  */ _RHD = false;	/* true or false */	/* Needs to be  false  for Paintball script */
/*  Use EH_Fired check   */ _EHF = false;	/* true or false */	/* Some mods revert the EventHandlers by default and can cause problems with this check. Tested on Epoch and AltisLife. */

Link to comment
Share on other sites

 

/*  Notification check   */ _UNC = false;   already false :-s its doing my head in lol works fine for admins 

 

also :

/*  revert allowDamage   */ _RAD = false;	/* true or false */	/* if you have safezones using "player allowDamage false;" or similar.. set _RAD = false; */
/*  HandleDamage check   */ _HDC = false;	/* true or false */	/* *experimental + Epoch only* - probably publicVariableServer spam but no more godmode hackers. */
/*  Revert HandleDamage  */ _RHD = false;	/* true or false */	/* Needs to be  false  for Paintball script */
/*  Use EH_Fired check   */ _EHF = false;	/* true or false */	/* Some mods revert the EventHandlers by default and can cause problems with this check. Tested on Epoch and AltisLife. */

try changing 

/*  custom _EHF Function */ _customFiredEventhandler = {}; /* this needs to be CODE */

to

/*  custom _EHF Function */ _customFiredEventhandler = {_safeZoneFiredEH = player addEventHandler ["Fired", {
	    deleteVehicle (_this select 6);
		titleText["You can not fire your weapon in a safe zone.", "PLAIN DOWN"];
        titleFadeOut 4;
    }];};		/* this needs to be CODE */

I haven't been messing with this script lately since he updated his antihack. Sorry for the problems.

Link to comment
Share on other sites

it was just no messages showing - got it working now by changing the hint to call bis_fnc_showNotification; 

Ok, I might mess with this script again soon and see if I can adjust things to make it look better and such. Thanks for the heads up.

Link to comment
Share on other sites

  • 2 weeks later...

hey i got the mod to work but its off the map in the bottom left hand corner, i wanted it to be on devils castle. any idea how too fix this ? 

All you need to do is edit the mission.sqm

 

Change the Sensor and Markers coordinates where the western, central and eastern safezones are located and if you only need 1 position then remove two of them and the last ones coordinates...

Link to comment
Share on other sites

All you need to do is edit the mission.sqm

 

Change the Sensor and Markers coordinates where the western, central and eastern safezones are located and if you only need 1 position then remove two of them and the last ones coordinates...

 

Like this ? 

 

class Markers
{
items = 5;
class Item0
{
position[] = {6968.658,324.48145,8345.914};
name = "center";
type = "Empty";
};
class Item1
{
position[] = {1024.82,0,2023.51};
name = "respawn_east";
type = "Empty";
angle = 23.608498;
};
class Item2
{
position[] = {1024.8502,5.858802,2023.5204};
name = "respawn_west";
type = "Empty";
angle = 23.608498;
};
class Item3
{
position[]={    {6899.41,11437.8,0.00152588};
};
name="Devils";
text="Safe Zone";
type="mil_warning";
colorName="ColorRed";
};
class Item4
{
position[]={    {6899.41,11437.8,0.00152588};
};
name="Devils";
markerType="ELLIPSE";
type="Empty";
colorName="ColorGreen";
fillName="Grid";
a=300;
b=300;
};
};
class Sensors
{
items=1;
class Item0
{
position[]={    {6899.41,11437.8,0.00152588};
};          a=300;
b=300;
activationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="DevilsTrader";
expCond = "(player distance DevilsTrader) < 300;";
expActiv="hint ""You have entered A Safe Zone! Do not fire in the Safe Zones."";  inSafeZone = true;";
expDesactiv="hint ""You are leaving the Safe Zone!""; inSafeZone = false;";
class Effects
{
};
};
};
};
Link to comment
Share on other sites

 

Like this ? 

 

class Markers
{
items = 5;
class Item0
{
position[] = {6968.658,324.48145,8345.914};
name = "center";
type = "Empty";
};
class Item1
{
position[] = {1024.82,0,2023.51};
name = "respawn_east";
type = "Empty";
angle = 23.608498;
};
class Item2
{
position[] = {1024.8502,5.858802,2023.5204};
name = "respawn_west";
type = "Empty";
angle = 23.608498;
};
class Item3
{
position[]={    {6899.41,11437.8,0.00152588};
};
name="Devils";
text="Safe Zone";
type="mil_warning";
colorName="ColorRed";
};
class Item4
{
position[]={    {6899.41,11437.8,0.00152588};
};
name="Devils";
markerType="ELLIPSE";
type="Empty";
colorName="ColorGreen";
fillName="Grid";
a=300;
b=300;
};
};
class Sensors
{
items=1;
class Item0
{
position[]={    {6899.41,11437.8,0.00152588};
};          a=300;
b=300;
activationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="DevilsTrader";
expCond = "(player distance DevilsTrader) < 300;";
expActiv="hint ""You have entered A Safe Zone! Do not fire in the Safe Zones."";  inSafeZone = true;";
expDesactiv="hint ""You are leaving the Safe Zone!""; inSafeZone = false;";
class Effects
{
};
};
};
};

 

Exactly! If that has any problems just send me your rpt.

Link to comment
Share on other sites

If anyone is looking for the Bornholm cord's - here they are :)

 

Remember! i have changed the enter message's to fit my RP server!

class Markers
	{
		items = 6;
		class Item0
		{
			position[]={10058.347,117.54227,9015.8477};
			name="center";
			type="Empty";
		};
		class Item1
		{
			position[]={13812.688,80.874428,6877.9214};
			name="respawn_east";
			type="Empty";
		};
		class Item2
		{
			position[]={13812.661,80.876938,6877.9683};
			name="respawn_west";
			type="Empty";
		};
		class Item3
		{
			position[]={14104.246,93.048363,11325.848};
			name="centralspawn";
			markerType="ELLIPSE";
			type="Empty";
			colorName="ColorGreen";
			fillName="Grid";
			a=250;
			b=250;
		};
		class Item4
		{
			position[]={15646.96,1.9119824,171.93274};
			name="eastspawn";
			markerType="ELLIPSE";
			type="Empty";
			colorName="ColorGreen";
			fillName="Grid";
			a=250;
			b=250;
		};
		class Item5
		{
			position[]={1327.9805,12.756651,8737.9756};
			name="westspawn";
			markerType="ELLIPSE";
			type="Empty";
			colorName="ColorGreen";
			fillName="Grid";
			a=250;
			b=250;
		};
	};
	class Sensors
	{
		items=3;
		class Item0
		{
			position[]={15646.96,1.9119824,171.93274};
			a=250;
			b=250;
			activationBy="ANY";
			repeating=1;
			interruptable=1;
			age="UNKNOWN";
			name="eastsafezone";
			expCond = "(player distance eastsafezone) < 250;";
			expActiv="hint ""You have entered the Safe Zone! Any hostile actions will get reported."";  inSafeZone = true;";
			expDesactiv="hint ""You are leaving the Safe Zone!""; inSafeZone = false;";
			class Effects
			{
			};
		};
		class Item1
		{
			position[]={1327.9805,12.756651,8737.9756};
			a=250;
			b=250;
			activationBy="ANY";
			repeating=1;
			interruptable=1;
			age="UNKNOWN";
			name="westsafezone";
			expCond = "(player distance westsafezone) < 250;";
			expActiv="hint ""You have entered the Safe Zone! Any hostile actions will get reported.""; inSafeZone = true;";
			expDesactiv="hint ""You are leaving the Safe Zone!""; inSafeZone = false;";
			class Effects
			{
			};
		};
		class Item2
		{
			position[]={14104.246,93.048363,11325.848};
			a=250;
			b=250;
			activationBy="ANY";
			repeating=1;
			interruptable=1;
			age="UNKNOWN";
			name="centralsafezone";
			expCond = "(player distance centralsafezone) < 250;";
			expActiv="hint ""You have entered the Safe Zone! Any hostile actions will get reported.""; inSafeZone = true;";
			expDesactiv="hint ""You are leaving the Safe Zone!""; inSafeZone = false;";
			class Effects
			{
			};
		};
	};
Link to comment
Share on other sites

I get a battleye script restriction #43 kick

 

scripts.log

22.05.2015 20:22:47: devildog (75.148.152.101:52038) 41233b5122ba56170047085eb4ed192c - #43 "5 = createMarker["MainMarker752", M2Coords];


_MainMarker75 setMarkerColor "ColorRed";
_MainMarker75 setMarkerShape "ELLIPSE";
_M"
22.05.2015 20:29:19: devildog (75.148.152.101:44869) 41233b5122ba56170047085eb4ed192c - #43 "r75 = createMarker["MainMarker75", MCoords];
_MainMarker75 setMarkerColor "ColorBlue";
_MainMarker75 setMarkerShape "ELLIPSE";
_"
22.05.2015 20:32:45: devildog (75.148.152.101:40860) 41233b5122ba56170047085eb4ed192c - #43 "r75 = createMarker["MainMarker75", MCoords];
_MainMarker75 setMarkerColor "ColorBlue";
_MainMarker75 setMarkerShape "ELLIPSE";

I've tried several things... can anyone help me please?

Link to comment
Share on other sites

  • 2 weeks later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...