Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private ["_EH_Fired"];
if (isNil "inSafezone") then {
inSafezone = false;
};
while {true} do {
waitUntil { inSafeZone };
// titleText [format["Entering Safe Zone! Weapons off, and shooting wastes ammo."],"PLAIN DOWN"]; titleFadeOut 4;
waitUntil { player == vehicle player };
theCar = LandVehicle;
thePlayer = vehicle player;
_EH_Fired = thePlayer addEventHandler ["Fired", {
titleText ["You can not fire your weapon in a safe zone.","PLAIN DOWN"]; titleFadeOut 4;
NearestObject [_this select 0,_this select 4] setPos[0,0,0];
}];
player_zombieCheck = {};
player_fired = {};
fnc_usec_damageHandler = {};
fnc_usec_unconscious = {};
object_monitorGear = {};
thePlayer removeAllEventHandlers "handleDamage";
thePlayer addEventHandler ["handleDamage", {false}];
thePlayer allowDamage false;
theCar removeAllEventHandlers "handleDamage";
theCar addEventHandler ["handleDamage", {false}];
theCar allowDamage false;
waitUntil { !inSafeZone };
// titleText [format["Exiting Safe Zone!"],"PLAIN DOWN"]; titleFadeOut 4;
thePlayer removeEventHandler ["Fired", _EH_Fired];
player_zombieCheck = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_zombieCheck.sqf";
player_fired = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_fired.sqf";
fnc_usec_damageHandler = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_damageHandler.sqf";
fnc_usec_unconscious = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_unconscious.sqf";
object_monitorGear = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\object_monitorGear.sqf";
thePlayer addEventHandler ["handleDamage", {true}];
thePlayer removeAllEventHandlers "handleDamage";
thePlayer allowDamage true;
theCar addEventHandler ["handleDamage", {true}];
theCar removeAllEventHandlers "handleDamage";
theCar allowDamage true;
};
oh ok ^^ cant u run a server for script testing on your local pc? i do so too ^^ i only upload things to my public one when they are working...![]()
class Sensors
{
items=1;
class Item0
{
position[]={11471,0,11333};
ractivationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="vehicle_god";
expCond="(LandVehicle distance vehicle_god) < 50;";
expActiv="CarGodEnter = [] execVM ""scripts\Zones\CarGodEnter.sqf""; terminate CarGodExit;";
expDesactiv="terminate CarGodEnter; CarGodExit = [] execVM ""scripts\Zones\CarGodExit.sqf"";";
class Effects
{
};
};
};
titleText ["Cargod enabled","PLAIN DOWN"]; titleFadeOut 4;
while {alive ( vehicle player )} do
{
vehicle player setfuel 1;
vehicle player setvehicleammo 1;
vehicle player setdammage 0;
sleep 0.001;
};