Jump to content

SafeZone God MOde


Stranger

Recommended Posts

I'm still on 1.0.2.4, but my safe zones stopped working after I turned on that new lighting feature. I have to wait another 20 minutes or so, after the next server restart, to see if disabling that again gets the safezones working again. If you have new lights turned on via the init.sqf file, try disabling them. 

Link to comment
Share on other sites



 
Private ["_EH_Fired"];



if (isNil "inSafezone") then {

inSafezone = false;

};



while {true} do {

waitUntil { inSafeZone };

titleText [format[" "],"PLAIN DOWN"]; titleFadeOut 4;



waitUntil { player == vehicle player };



thePlayer = vehicle player;

_EH_Fired = thePlayer addEventHandler ["Fired", {

titleText ["You can not fire your weapon in a trading city!","PLAIN DOWN"]; titleFadeOut 4;

NearestObject [_this select 0,_this select 4] setPos[0,0,0];

}];



player_zombieCheck = {};

fnc_usec_damageHandler = {};

thePlayer removeAllEventHandlers "handleDamage";

thePlayer addEventHandler ["handleDamage", {false}];

thePlayer allowDamage false;



waitUntil { !inSafeZone };



titleText [format[" "],"PLAIN DOWN"]; titleFadeOut 4;

thePlayer removeEventHandler ["Fired", _EH_Fired];



player_zombieCheck = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_zombieCheck.sqf";

fnc_usec_damageHandler = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_damageHandler.sqf";

thePlayer addEventHandler ["handleDamage", {true}];

thePlayer removeAllEventHandlers "handleDamage";

thePlayer allowDamage true;

};

 

Link to comment
Share on other sites

This http://dayzepoch.com/forum/index.php?/topic/386-better-safezone-maybe/ does not seem to be working for me.

Could anyone be so kind to post a working missions.sqm? The Init Expression explains itself. Or a Link to a working Safezone script?

Obviously i'm unable to figure out what changed in the sqm... Added the Sensors, added the exec in the init. No effect ingame. Used to work like a charm in .4

Any help would be MUCH MUCH apprechiated...!

Link to comment
Share on other sites

There is a Vehicle fix for the better safezone script. worked like a charm... Just need that sqm :/ Don't want to "steal" it by extracting it from any server. So would be cool if someone could share his/her sqm maybe alongside the init with a working safezones script.

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
  • Advertisement
  • Discord

×
×
  • Create New...