By
juandayz
I JUST LEAVE THIS ONE CUZ I KNOW YOU GUYS GONNA NEED IT..
The very old safezone script by infistar... i was using it in 1.0.5.1 and made some changes to use in 1.6.
Instructions:
1. Copy paste the code of below into a file called 16_safezone.sqf - save the file.
2. Paste this 16_safezone.sqf into mpmissioms\instance_11.chernarus\custom\
3. Open your init.sqf
4. At the very bottom of the file add this line: [] execVM "custom\16_safezone.sqf";
5. Save the init.sqf and restart your server.
6-WARNING!!! if ure using some kind of mod that allow vehicles with GodMode out of safezones.. then you will need in 16_safezone.sqf change the path for veh_handleDam.sqf by the path that youre using your custom veh_handleDam.sqf
this line: fnc_veh_handleDam = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\veh_handleDam.sqf';
16_safezone.sqf
OPTIONAL:
@BetterDeadThanZed here you got.
REMOVE LOOT FROM TRADER CITIES AND PLOT POLES. (should removes zeds from trader places and poles too)
anyone know how to remove this from rpt
0:53:48 ["z\addons\dayz_server\system\scheduler\sched_safetyVehicle.sqf","KILLING A HACKER","Haikal Saikal"," IN ","Su25_Ins"]
The sqf who spawn it: (located in mpmissions\ and called manually by scroll menu)
_aiskin = "TK_Commander_EP1"; _plane_class = "Su25_INS"; //////////////////////////CREATE FACTION _this = createCenter east; _this setFriend [west, 0]; _this setFriend [east, 0]; _this setFriend [civil, 0]; _center_1 = _this; _unitGroup = createGroup _center_1; ////////////////////////// /////////////////////////PILOT _pilot = objNull; _pilot = _unitGroup createUnit [_aiskin, [(_startingpos select 0) + 90, (_startingpos select 1) + 100], [], 1, "NONE"]; //_pilot addEventHandler ["handleDamage", {false}]; [_pilot] joinSilent _unitGroup; ///////////////////////// sleep 1; ////////////////////////JET _carrier = createVehicle [_plane_class, [(_startingpos select 0) + 50, (_startingpos select 1) + 50],[], 0, "FLY"]; _carrier setVehicleVarName "heli"; _carrier setFuel 1; _carrier engineOn true; _carrier addEventHandler ["Fired",{(_this select 0) setVehicleAmmo 1}]; _carrier flyInHeight 150; _carrier setVehicleLock "LOCKED"; _carrier addEventHandler ["GetOut",{(_this select 0) setFuel 0;(_this select 0) setDamage 1;}]; dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_carrier]; //////////////////////// _pilot assignAsDriver _carrier; _pilot moveInDriver _carrier; _pilot setBehaviour "COMBAT";
variables.sqf ( DZE_safeVehicle = ["ParachuteWest","ParachuteC","Su25_INS"]; )
i also try comment the line in sched_veh
sched_safetyVehicle = { { if (vehicle _x != _x && !(vehicle _x in dayz_serverObjectMonitor) && !((typeOf vehicle _x) in DZE_safeVehicle)) then { diag_log [ __FILE__, "KILLING A HACKER", name _x, " IN ", typeOf vehicle _x ]; //(vehicle _x) setDamage 1; //_x setDamage 1; }; } forEach allUnits; objNull };
as you know.. the AI is not killed by the comment line.. but i leave the diag_log to see if still rpt spawns.. and it does.
and also add the "su25_INS" in dynamic_vehicle.sqf
Ohh also i have the "TK_Commander_EP1" in Allplayers = [];
Share this post
Link to post
Share on other sites