Safe Zone with GOD mode for all players

AsianKid

Well-Known Member
Original Post for Safezone (no god)
Created by IT07
God mode created by kris and Zane
http://opendayz.net/members/kris.1884/

Click this for the Dome
http://dayz.st/w/Protected_Dome

#tested on

Taviana
Cherno

Example for the position you want for the safe zone to be.
position[]={13199.9,0.002,16651.4}

Step 1
Make a sqf named "safezone.sqf" and paste this in it

Code:
//Mod by Zane
Private ["_Basis","_EH_Fired","_EH_Hit","_EH_Killed"];
_Basis = _this select 0; //Basisname
while {true} do
  {
    waitUntil {vehicle player in list _Basis};
titleText ["Welcome to the Trading post, God mode ON.", "PLAIN DOWN", 3];
sleep 2;
player setUnitRecoilCoefficient 0;
player_zombieCheck = {};
fnc_usec_damageHandler = {};
fnc_usec_unconscious  = {};
player allowDamage false;
    waitUntil {! (vehicle player in list _Basis)};
titleText ["Leaving Trading Post, God mode OFF.", "PLAIN DOWN", 3];
sleep 2;
player setUnitRecoilCoefficient 1;
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";
fnc_usec_unconscious = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_unconscious.sqf";
player allowDamage true;
  }

Step 2
In you mission.sqf paste this after "class vehicles" and befor "class markers"

Code:
    class Sensors
{
        items=1;
        class Item0
        {
            position[]={13199.9,0.002,16651.4};
            a=150;
            b=150;
            activationBy="ANY";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            text="Basis_West";
            name="Basis_West";
            expActiv="if (playerSide == WEST) then {[Basis_West] execVM ""safezone.sqf""};";
            class Effects
            {
            };
        };
};

Enjoy

Video Demo
 
Back
Top