dayz noob Posted February 15, 2017 Report Share Posted February 15, 2017 22 hours ago, TheCobra said: Found my entire .rpt server file: http://pastebin.com/JQAaB165 The other one was a streamed one from my host, it wasnt the full file, sorry. Warning Message: Script infiSTAR\AH.sqf not found is what you need to be looking for , as the issue was infistar you either need to change where u have infistar installed or change the call line to where it is installed (also check you have all infistar files installed) i have my infistar files installed in dayz server/init folder and use the call line [] spawn {[] execVM "\z\addons\dayz_server\init\AH.sqf";}; and all works fine try installing infistar where i have mine and using the call line and see if that works good luck juandayz 1 Link to comment Share on other sites More sharing options...
TheCobra Posted February 15, 2017 Report Share Posted February 15, 2017 1 hour ago, dayz noob said: Warning Message: Script infiSTAR\AH.sqf not found is what you need to be looking for , as the issue was infistar you either need to change where u have infistar installed or change the call line to where it is installed (also check you have all infistar files installed) i have my infistar files installed in dayz server/init folder and use the call line [] spawn {[] execVM "\z\addons\dayz_server\init\AH.sqf";}; and all works fine try installing infistar where i have mine and using the call line and see if that works good luck Hi, tried installing it exactly like you did, multiple times, still produces the exact same issue. Im gonna assume infiSTAR screwed something up in the latest update, or it just does not wanna work with my server. Cause i had an older version of infiSTAR on my pc. A version from 08/16. I installed that, and it worked perfectly the first time, so not gonna bother with the new version anymore. Thanks for helping though :) Link to comment Share on other sites More sharing options...
kingpapawawa Posted February 16, 2017 Report Share Posted February 16, 2017 Warning Message: Script infiSTAR\AH.sqf not found its looking for this to be in the root of the server, not in the dayzserver or in the mission. this is how the latest infistar was setup for some reason Link to comment Share on other sites More sharing options...
shayd Posted February 22, 2017 Report Share Posted February 22, 2017 Hi, I'm getting this in my RPT, I am admittedly in dire need of coffee, but can't see any issues in my init.sqf that could cause this? any help would be appreciated. }; [] execVM "custom\safezone.sqf";> 12:34:00 Error position: <}; [] execVM "custom\safezone.sqf";> 12:34:00 Error Missing { 12:34:00 File mpmissions\DayZ_Epoch_11.Chernarus\init.sqf, line 147 12:34:00 "dayz_preloadFinished reset" 12:34:00 Error in expression <und 1; 3 fadeMusic 1; endLoadingScreen; }; [] execVM "custom\safezone.sqf";> 12:34:00 Error position: <}; [] execVM "custom\safezone.sqf";> 12:34:00 Error Missing { 12:34:00 File mpmissions\DayZ_Epoch_11.Chernarus\init.sqf, line 147 Link to comment Share on other sites More sharing options...
shayd Posted February 22, 2017 Report Share Posted February 22, 2017 Never mind, calling it further up in my init.sqf worked juandayz 1 Link to comment Share on other sites More sharing options...
Jestertriks Posted March 13, 2017 Report Share Posted March 13, 2017 only after I installed this, I am getting kicked for battleye restriction #2. any ideas? first script I have installed so far 6:33:32 "INFO - Player: PID#3(Jestertriks)(UID:76561198147659763/CID:1) Status: LOGGING IN" 6:33:33 "HIVE: WRITE: "CHILD:306:58:[["glass1",1],["glass2",1],["glass3",1],["glass4",1],["glass5",1],["glass6",1],["NEtrup",0.565],["motor",1],["elektronika",1],["mala vrtule",0.138],["velka vrtule",1],["munice",0.931],["sklo predni P",0.752],["sklo predni L",0.028]]:0.301:"" 6:33:35 "INFO: needUpdate_objects=[35dea080# 1055402: mi_8amt.p3d]" 6:33:35 "HIVE: WRITE: "CHILD:306:58:[["glass1",1],["glass2",1],["glass3",1],["glass4",1],["glass5",1],["glass6",1],["NEtrup",0.565],["motor",1],["elektronika",1],["mala vrtule",0.138],["velka vrtule",1],["munice",0.931],["sklo predni P",0.752],["sklo predni L",0.028]]:0.343669:"" 6:33:36 "HIVE: WRITE: "CHILD:306:212:[["mala vrtule",0.91],["velka vrtule",0.795],["NEtrup",0],["motor",0.125],["elektronika",0],["munice",0],["sklo predni P",0.059],["sklo predni L",0.06],["glass1",0],["glass2",0],["glass3",0.224],["glass4",0.224],["glass5",0],["glass6",0]]:0.107:"" 6:33:36 "INFO: needUpdate_objects=[373b4100# 1055567: ch_47f.p3d]" 6:33:36 "HIVE: WRITE: "CHILD:306:212:[["mala vrtule",0.91],["velka vrtule",0.795],["NEtrup",0],["motor",0.125],["elektronika",0],["munice",0],["sklo predni P",0.059],["sklo predni L",0.06],["glass1",0],["glass2",0],["glass3",0.224],["glass4",0.224],["glass5",0],["glass6",0]]:0.108054:"" 6:33:40 "infiSTAR.de PlayerDisconnected: _uid: 76561198147659763 _name: Jestertriks" 6:33:40 "INFO: OnPlayerDisconnect exiting. Player is near respawn_west. This is normal after death. ["76561198147659763","Jestertriks"]" Link to comment Share on other sites More sharing options...
Relentless Posted March 26, 2017 Report Share Posted March 26, 2017 On 13.3.2017 at 2:46 PM, Jestertriks said: only after I installed this, I am getting kicked for battleye restriction #2. any ideas? first script I have installed so far Hide contents 6:33:32 "INFO - Player: PID#3(Jestertriks)(UID:76561198147659763/CID:1) Status: LOGGING IN" 6:33:33 "HIVE: WRITE: "CHILD:306:58:[["glass1",1],["glass2",1],["glass3",1],["glass4",1],["glass5",1],["glass6",1],["NEtrup",0.565],["motor",1],["elektronika",1],["mala vrtule",0.138],["velka vrtule",1],["munice",0.931],["sklo predni P",0.752],["sklo predni L",0.028]]:0.301:"" 6:33:35 "INFO: needUpdate_objects=[35dea080# 1055402: mi_8amt.p3d]" 6:33:35 "HIVE: WRITE: "CHILD:306:58:[["glass1",1],["glass2",1],["glass3",1],["glass4",1],["glass5",1],["glass6",1],["NEtrup",0.565],["motor",1],["elektronika",1],["mala vrtule",0.138],["velka vrtule",1],["munice",0.931],["sklo predni P",0.752],["sklo predni L",0.028]]:0.343669:"" 6:33:36 "HIVE: WRITE: "CHILD:306:212:[["mala vrtule",0.91],["velka vrtule",0.795],["NEtrup",0],["motor",0.125],["elektronika",0],["munice",0],["sklo predni P",0.059],["sklo predni L",0.06],["glass1",0],["glass2",0],["glass3",0.224],["glass4",0.224],["glass5",0],["glass6",0]]:0.107:"" 6:33:36 "INFO: needUpdate_objects=[373b4100# 1055567: ch_47f.p3d]" 6:33:36 "HIVE: WRITE: "CHILD:306:212:[["mala vrtule",0.91],["velka vrtule",0.795],["NEtrup",0],["motor",0.125],["elektronika",0],["munice",0],["sklo predni P",0.059],["sklo predni L",0.06],["glass1",0],["glass2",0],["glass3",0.224],["glass4",0.224],["glass5",0],["glass6",0]]:0.108054:"" 6:33:40 "infiSTAR.de PlayerDisconnected: _uid: 76561198147659763 _name: Jestertriks" 6:33:40 "INFO: OnPlayerDisconnect exiting. Player is near respawn_west. This is normal after death. ["76561198147659763","Jestertriks"]" You have to provide your filter.log and filter.txt. Let's say you got "Battleye Script Restriction #12" then you have to give us your scripts.log and scripts.txt N4mEL3sS and juandayz 2 Link to comment Share on other sites More sharing options...
gernika Posted March 28, 2017 Report Share Posted March 28, 2017 works fine to me! tnks so much Link to comment Share on other sites More sharing options...
Kimarik Posted April 17, 2017 Report Share Posted April 17, 2017 hi i installed the safezone script. now i get this error. this error spams my hole RPT log if ((vehicle player) distance _z < _r) then {_state = true;};> Error position: <distance _z < _r) then {_state = true;};> Error 4 Elemente angegeben, 3 erwartet File mpmissions\__CUR_MP.chernarus\scripts\safezone\safezone.sqf, line 248 Error in expression < here is my safezone script Spoiler /* by: http://infiSTAR.de || http://DayzAntiHack.com *updated on 13.12.2016 by juandayz for epoch 1.6 community //all credits for infi How i install it? 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. */ USE_CANBUILD = false; // if you don't want to define your own positions USE_TraderCity = false; // if you don't want to define your own positions (Epoch 1.0.5) USE_POSITIONS = true; // to use own positions and radius USE_AI_REMOVER = true; // use this to remove Missionbots (AI) within 100m of a player if the player is in a SafeZone USE_AntiSteal = false; // use this to block opening gear if another player is within 3m! USE_SPEEDLIMIT = false; // very secret function, nobody is supposed to find out what it does. SPEEDLIMIT = 35; // Only used if USE_SPEEDLIMIT is true. USE_SIGNS = true; // use this to build signs around the SafeZone LOG_EnterLeave = true; // This will log to your .rpt when a player enters or leaves a SafeZone! (only works with infiSTAR.de Admintools / AntiHack) /* You can use USE_CANBUILD or/and (works together) the custom positions below (USE_POSITIONS) [position or zone,radius] */ _infiSZ = [ [[6326,7809,5.0],75,true], // Trader City Stary [[11447,11364,5.0],75,true], // Trader City Klen [[4064,11665,5.0],75,true], // Trader City Bash [[4718,10214,5.0],50,true], // AWOL's Airfield [[11647.384,3175.261,5.0],50,true], // Candyman [[12944,12766,5.0],50,true], // Hero [[5280,5518,5.0],50,true], // Wholesaler [[10146,1662,5.0],50,true], // Boatdealer [[5254.99,3863.78,0,0],50,true], // Baumarkt [[7207,3023,5.0],50,true], // Gem Trader [[1610, 7797,0],50,true], // Bandit Trader [[8690.01,6479.04,5.0],40,true], // Bank Central Guglovo [[13211.9,3997.21,5.0],40,true], // Bank Krutoy Cap [[1003.76,2223.07,5.0],40,true] // Bank Kamenka ]; { DZE_SafeZonePosArray set [(count DZE_SafeZonePosArray), [(_x select 0), (_x select 1)]]; } forEach _infiSZ; if (isServer) exitWith { if (USE_SIGNS) then { { _center = _x select 0; _radius = _x select 1; _lSign = _x select 2; if (_lSign) then { for '_i' from 0 to 360 step (270 / _radius)*2 do { _location = [(_center select 0) + ((cos _i) * _radius), (_center select 1) + ((sin _i) * _radius),0]; _dir = ((_center select 0) - (_location select 0)) atan2 ((_center select 1) - (_location select 1)); _object = createVehicle ['Sign_sphere100cm_EP1', _location, [], 0, 'CAN_COLLIDE']; // _object = createVehicle ['SignM_FARP_Winchester_EP1', _location, [], 0, 'CAN_COLLIDE']; // _object setVehicleInit 'this setObjectTexture [0,''Addons\SafeZones\sign.paa''];'; _object setDir _dir; }; }; } forEach _infiSZ; }; }; waitUntil {((!isNil 'dayz_animalCheck') || (!isNil 'dayz_medicalH') || (!isNil 'dayz_slowCheck') || (!isNil 'dayz_gui'))}; if (isNil 'inSafeZone') then { inSafeZone = false; } else { if (typename inSafeZone != 'BOOL') then { inSafeZone = false; }; }; [_infiSZ] spawn { _infiSZ = _this select 0; _startSafeZone = { if (isNil 'outNow') then { _msg = 'You entered a Safe Zone!'; hint _msg; taskHint [_msg, [0,1,0,1], 'taskDone']; inNow = nil; outNow = true; if (LOG_EnterLeave) then { PVDZ_send = [player,'SafeZoneState',[1]]; publicVariableServer 'PVDZ_send'; }; }; player_fired = { deleteVehicle (nearestObject [_this select 0,_this select 4]); cutText ['You can not fire in a SafeZone!','WHITE IN']; }; //wild_spawnZombies = {}; zombie_generate = {}; fnc_usec_damageHandler = {}; player removeAllEventHandlers 'handleDamage'; player addEventHandler ['handleDamage', {false}]; player allowDamage false; _veh = vehicle player; _szs = _veh getVariable ['inSafeZone',0]; if (_szs == 0) then { _veh setVariable ['inSafeZone',1,true]; if (player != _veh) then { _veh removeAllEventHandlers 'Fired'; _veh addEventHandler ['Fired', {_this call player_fired;}]; { _x removeAllEventHandlers 'Fired'; _x addEventHandler ['Fired', {_this call player_fired;}]; } forEach (crew _veh); fnc_veh_handleDam = {false}; _veh removeAllEventHandlers 'HandleDamage'; _veh addeventhandler ['HandleDamage',{ _this call fnc_veh_handleDam } ]; _veh allowDamage false; }; }; _notInSafeZone = [ 'MAAWS','RPG7V','M136','RPG18','STINGER', 'MeleeBaseball','MeleeHatchet','MeleeCrowbar','MeleeMachete','MeleeFishingPole','MeleeSledge', 'MeleeBaseBallBatNails','MeleeBaseBallBatBarbed','MeleeBaseBallBat' ]; _cwep = currentWeapon player; if (_cwep in _notInSafeZone) then { _swep = ''; { if ((getNumber (configFile >> 'CfgWeapons' >> _x >> 'Type')) == 2) exitWith { _swep = _x; }; } forEach (weapons player); if (_swep == '') then { player playActionNow 'PutDown'; _iPos = getPosATL player; _radius = 1; _removed = ([player,_cwep,1] call BIS_fnc_invRemove); if (_removed == 1) then { _item = createVehicle ['WeaponHolder', _iPos, [], _radius, 'CAN_COLLIDE']; _item addWeaponCargoGlobal [_cwep,1]; }; } else { player selectweapon _swep; }; }; }; _endSafeZone = { if (isNil 'inNow') then { if (str fnc_usec_damageHandler == '{}') then { _msg = 'You left the Safe Zone!'; hint _msg; taskHint [_msg, [1,0,0.1,1], 'taskFailed']; }; inNow = true; outNow = nil; if (LOG_EnterLeave) then { PVDZ_send = [player,'SafeZoneState',[0]]; publicVariableServer 'PVDZ_send'; }; }; //wild_spawnZombies = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\wild_spawnZombies.sqf'; zombie_generate = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\zombie_generate.sqf"; // player_fired = { _this call compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\player_fired.sqf'; _unit = _this select 0; _weapon = _this select 1; _muzzle = _this select 2; _mode = _this select 3; _ammo = _this select 4; _magazine = _this select 5; _projectile = _this select 6; _screenToWorld = screenToWorld [0.5,0.5]; _near = _screenToWorld nearEntities ['AllVehicles',100]; { if (isPlayer _x) then { _szs = _x getVariable ['inSafeZone',0]; if (_szs == 1) then { deleteVehicle (nearestObject [_unit,_ammo]); }; }; } forEach _near; }; 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'; fnc_veh_handleDam = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\veh_handleDam.sqf'; _veh = vehicle player; _szs = _veh getVariable ['inSafeZone',0]; if (_szs == 1) then { _veh setVariable ['inSafeZone',0,true]; if (player != _veh) then { _veh removeAllEventHandlers 'HandleDamage'; _veh addeventhandler ['HandleDamage',{ _this call fnc_veh_handleDam } ]; _veh allowDamage true; }; }; _end = false; if (isNil 'gmadmin') then { _end = true; } else { if (gmadmin == 0) then { _end = true; }; }; if (_end) then { player allowDamage true; fnc_usec_damageHandler = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\fn_damageHandler.sqf'; player removeAllEventHandlers 'HandleDamage'; player addeventhandler ['HandleDamage',{_this call fnc_usec_damageHandler;} ]; }; }; while {1 == 1} do { if (isNil 'inSafeZone') then { inSafeZone = false; } else { if (typename inSafeZone != 'BOOL') then { inSafeZone = false; }; }; _state = false; if (isNil 'USE_POSITIONS') then { USE_POSITIONS = false; } else { if (typename USE_POSITIONS != 'BOOL') then { USE_POSITIONS = false; }; }; if (USE_POSITIONS) then { { _z = _x select 0; _r = _x select 1; if ((vehicle player) distance _z < _r) then {_state = true;}; } forEach _infiSZ; }; if (isNil 'USE_CANBUILD') then { USE_CANBUILD = true; } else { if (typename USE_CANBUILD != 'BOOL') then { USE_CANBUILD = true; }; }; if (USE_CANBUILD) then { if (isNil 'canbuild') then { canbuild = true; } else { if (typename canbuild != 'BOOL') then { canbuild = true; }; }; if (!canbuild) then {_state = true;}; }; if (isNil 'USE_TraderCity') then { USE_TraderCity = true; } else { if (typename USE_TraderCity != 'BOOL') then { USE_TraderCity = true; }; }; if (USE_TraderCity) then { if (isNil 'isInTraderCity') then { isInTraderCity = false; } else { if (typename isInTraderCity != 'BOOL') then { isInTraderCity = false; }; }; if (isInTraderCity) then {_state = true;}; }; if (_state) then { inSafeZone = true; call _startSafeZone; { if (!isNull _x) then { if !(isPlayer _x) then { deletevehicle _x; }; }; } forEach ((vehicle player) nearEntities ['zZombie_Base',50]); if (isNil 'USE_AI_REMOVER') then { USE_AI_REMOVER = false; } else { if (typename USE_AI_REMOVER != 'BOOL') then { USE_AI_REMOVER = false; }; }; if (USE_AI_REMOVER) then { { if ((!isNull group _x) && (getPlayerUID _x == '')) then { deleteVehicle _x; }; } forEach (player nearEntities ['Man',100]); }; } else { inSafeZone = false; }; uiSleep 2; if (!inSafeZone) then { call _endSafeZone; }; }; }; if ((USE_AntiSteal) || (USE_SPEEDLIMIT)) then { [] spawn { _USE_AntiSteal = USE_AntiSteal; _USE_SPEEDLIMIT = USE_SPEEDLIMIT; _speedlimit = SPEEDLIMIT; while {1 == 1} do { if (inSafezone) then { if (_USE_AntiSteal) then { _cnt = {isPlayer _x && _x != player} count (player nearEntities [['CAManBase'],4]); if ((_cnt > 0) && (!isNull (findDisplay 106))) then { (findDisplay 106) closedisplay 0; closeDialog 0;closeDialog 0;closeDialog 0; _log = format['%1 You are not allowed to open Gear while near another player!',name player]; cutText [_log,'PLAIN']; hint _log; }; }; if (_USE_SPEEDLIMIT) then { _obj = vehicle player; if !(_obj isKindOf 'Plane') then { _speed = abs speed _obj; if ((_obj != player) && (_speed > _speedlimit)) then { _vel = velocity _obj; _x = 0.8; if (_speed > 50) then {_x = 0.1;}; _velNew = [(_vel select 0) * _x, (_vel select 1) * _x,(_vel select 2) * _x]; _obj SetVelocity _velNew; }; }; }; } else { uiSleep 2; }; uiSleep .01; }; }; }; can someone help me? sry for my bad english Link to comment Share on other sites More sharing options...
juandayz Posted April 17, 2017 Author Report Share Posted April 17, 2017 @Kimarik this is not a fix. just a test. change by false the USE_POSITIONS = true; variable. and check if the error has gone. if thers no more errors.. change by true again. and use the standard coords [[6325.6772,7807.7412,0],150,true],//stary [[4063.4226,11664.19,0],150,true],//bash [[11447.472,11364.504,0],150,true],//klen [[1606.6443,7803.5156,0],150,true],//bandit [[12944.227,12766.889,0],150,true],//hero [[4361.4937,2259.9526,0],50,true],//wholesalerSouth [[12060,12640,0],200,true]//air dealear if thers no errors.. then check your customs coords. gernika 1 Link to comment Share on other sites More sharing options...
Clark Posted April 17, 2017 Report Share Posted April 17, 2017 vehicles stay in god when leaving safe zones how do you fix it got it working now but i cant get vehicles plot to work with this safe zone :( Link to comment Share on other sites More sharing options...
juandayz Posted April 18, 2017 Author Report Share Posted April 18, 2017 4 hours ago, Clark said: vehicles stay in god when leaving safe zones how do you fix it got it working now but i cant get vehicles plot to work with this safe zone :( in 16safezone.sqf find this line fnc_veh_handleDam = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\veh_handleDam.sqf'; and chenge the path , using the custom location , same as youre using with @BigEgg ´s veh_handleDam.sqf fnc_veh_handleDam = compile preprocessFileLineNumbers "FILE\PATH\HERE\veh_handleDam.sqf"; Bricktop, BigEgg and gernika 3 Link to comment Share on other sites More sharing options...
Clark Posted April 18, 2017 Report Share Posted April 18, 2017 i did that and its still not working Link to comment Share on other sites More sharing options...
juandayz Posted April 18, 2017 Author Report Share Posted April 18, 2017 12 hours ago, Clark said: i did that and its still not working please paste your whole 16_safezone.sqf here gernika 1 Link to comment Share on other sites More sharing options...
Clark Posted April 18, 2017 Report Share Posted April 18, 2017 /* by: http://infiSTAR.de || http://DayzAntiHack.com *updated on 13.12.2016 by juandayz for epoch 1.6 community //all credits for infi How i install it? 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. */ USE_CANBUILD = false; // if you don't want to define your own positions USE_TraderCity = false; // if you don't want to define your own positions (Epoch 1.0.5) USE_POSITIONS = true; // to use own positions and radius USE_AI_REMOVER = false; // use this to remove Missionbots (AI) within 100m of a player if the player is in a SafeZone USE_AntiSteal = true; // use this to block opening gear if another player is within 3m! USE_SPEEDLIMIT = true; // very secret function, nobody is supposed to find out what it does. SPEEDLIMIT = 25; // Only used if USE_SPEEDLIMIT is true. USE_SIGNS = false; // use this to build signs around the SafeZone LOG_EnterLeave = true; // This will log to your .rpt when a player enters or leaves a SafeZone! (only works with infiSTAR.de Admintools / AntiHack) /* You can use USE_CANBUILD or/and (works together) the custom positions below (USE_POSITIONS) [position or zone,radius] */ _infiSZ = [ [[6325.6772,7807.7412,0],150,true],//stary [[4063.4226,11664.19,0],150,true],//bash [[11447.472,11364.504,0],150,true],//klen [[1606.6443,7803.5156,0],150,true],//bandit [[12944.227,12766.889,0],150,true],//hero [[4361.4937,2259.9526,0],50,true],//wholesalerSouth [[12060,12640,0],200,true]//air dealear ]; { DZE_SafeZonePosArray set [(count DZE_SafeZonePosArray), [(_x select 0), (_x select 1)]]; } forEach _infiSZ; if (isServer) exitWith { if (USE_SIGNS) then { { _center = _x select 0; _radius = _x select 1; _lSign = _x select 2; if (_lSign) then { for '_i' from 0 to 360 step (270 / _radius)*2 do { _location = [(_center select 0) + ((cos _i) * _radius), (_center select 1) + ((sin _i) * _radius),0]; _dir = ((_center select 0) - (_location select 0)) atan2 ((_center select 1) - (_location select 1)); _object = createVehicle ['Sign_sphere100cm_EP1', _location, [], 0, 'CAN_COLLIDE']; // _object = createVehicle ['SignM_FARP_Winchester_EP1', _location, [], 0, 'CAN_COLLIDE']; // _object setVehicleInit 'this setObjectTexture [0,''Addons\SafeZones\sign.paa''];'; _object setDir _dir; }; }; } forEach _infiSZ; }; }; waitUntil {((!isNil 'dayz_animalCheck') || (!isNil 'dayz_medicalH') || (!isNil 'dayz_slowCheck') || (!isNil 'dayz_gui'))}; if (isNil 'inSafeZone') then { inSafeZone = false; } else { if (typename inSafeZone != 'BOOL') then { inSafeZone = false; }; }; [_infiSZ] spawn { _infiSZ = _this select 0; _startSafeZone = { if (isNil 'outNow') then { _msg = 'You entered a Safe Zone!'; hint _msg; taskHint [_msg, [0,1,0,1], 'taskDone']; inNow = nil; outNow = true; if (LOG_EnterLeave) then { PVDZ_send = [player,'SafeZoneState',[1]]; publicVariableServer 'PVDZ_send'; }; }; player_fired = { deleteVehicle (nearestObject [_this select 0,_this select 4]); cutText ['You can not fire in a SafeZone!','WHITE IN']; }; //wild_spawnZombies = {}; zombie_generate = {}; fnc_usec_damageHandler = {}; player removeAllEventHandlers 'handleDamage'; player addEventHandler ['handleDamage', {false}]; player allowDamage false; _veh = vehicle player; _szs = _veh getVariable ['inSafeZone',0]; if (_szs == 0) then { _veh setVariable ['inSafeZone',1,true]; if (player != _veh) then { _veh removeAllEventHandlers 'Fired'; _veh addEventHandler ['Fired', {_this call player_fired;}]; { _x removeAllEventHandlers 'Fired'; _x addEventHandler ['Fired', {_this call player_fired;}]; } forEach (crew _veh); fnc_veh_handleDam = {false}; _veh removeAllEventHandlers 'HandleDamage'; _veh addeventhandler ['HandleDamage',{ _this call fnc_veh_handleDam } ]; _veh allowDamage false; }; }; _notInSafeZone = [ 'MAAWS','RPG7V','M136','RPG18','STINGER', 'MeleeBaseball','MeleeHatchet','MeleeCrowbar','MeleeMachete','MeleeFishingPole','MeleeSledge', 'MeleeBaseBallBatNails','MeleeBaseBallBatBarbed','MeleeBaseBallBat' ]; _cwep = currentWeapon player; if (_cwep in _notInSafeZone) then { _swep = ''; { if ((getNumber (configFile >> 'CfgWeapons' >> _x >> 'Type')) == 2) exitWith { _swep = _x; }; } forEach (weapons player); if (_swep == '') then { player playActionNow 'PutDown'; _iPos = getPosATL player; _radius = 1; _removed = ([player,_cwep,1] call BIS_fnc_invRemove); if (_removed == 1) then { _item = createVehicle ['WeaponHolder', _iPos, [], _radius, 'CAN_COLLIDE']; _item addWeaponCargoGlobal [_cwep,1]; }; } else { player selectweapon _swep; }; }; }; _endSafeZone = { if (isNil 'inNow') then { if (str fnc_usec_damageHandler == '{}') then { _msg = 'You left the Safe Zone!'; hint _msg; taskHint [_msg, [1,0,0.1,1], 'taskFailed']; }; inNow = true; outNow = nil; if (LOG_EnterLeave) then { PVDZ_send = [player,'SafeZoneState',[0]]; publicVariableServer 'PVDZ_send'; }; }; //wild_spawnZombies = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\wild_spawnZombies.sqf'; zombie_generate = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\zombie_generate.sqf"; // player_fired = { _this call compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\player_fired.sqf'; _unit = _this select 0; _weapon = _this select 1; _muzzle = _this select 2; _mode = _this select 3; _ammo = _this select 4; _magazine = _this select 5; _projectile = _this select 6; _screenToWorld = screenToWorld [0.5,0.5]; _near = _screenToWorld nearEntities ['AllVehicles',100]; { if (isPlayer _x) then { _szs = _x getVariable ['inSafeZone',0]; if (_szs == 1) then { deleteVehicle (nearestObject [_unit,_ammo]); }; }; } forEach _near; }; 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'; fnc_veh_handleDam = compile preprocessFileLineNumbers 'scripts\veh_handleDam\veh_handleDam.sqf'; _veh = vehicle player; _szs = _veh getVariable ['inSafeZone',0]; if (_szs == 1) then { _veh setVariable ['inSafeZone',0,true]; if (player != _veh) then { _veh removeAllEventHandlers 'HandleDamage'; _veh addeventhandler ['HandleDamage',{ _this call fnc_veh_handleDam } ]; _veh allowDamage true; }; }; _end = false; if (isNil 'gmadmin') then { _end = true; } else { if (gmadmin == 0) then { _end = true; }; }; if (_end) then { player allowDamage true; fnc_usec_damageHandler = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\fn_damageHandler.sqf'; player removeAllEventHandlers 'HandleDamage'; player addeventhandler ['HandleDamage',{_this call fnc_usec_damageHandler;} ]; }; }; while {1 == 1} do { if (isNil 'inSafeZone') then { inSafeZone = false; } else { if (typename inSafeZone != 'BOOL') then { inSafeZone = false; }; }; _state = false; if (isNil 'USE_POSITIONS') then { USE_POSITIONS = false; } else { if (typename USE_POSITIONS != 'BOOL') then { USE_POSITIONS = false; }; }; if (USE_POSITIONS) then { { _z = _x select 0; _r = _x select 1; if ((vehicle player) distance _z < _r) then {_state = true;}; } forEach _infiSZ; }; if (isNil 'USE_CANBUILD') then { USE_CANBUILD = true; } else { if (typename USE_CANBUILD != 'BOOL') then { USE_CANBUILD = true; }; }; if (USE_CANBUILD) then { if (isNil 'canbuild') then { canbuild = true; } else { if (typename canbuild != 'BOOL') then { canbuild = true; }; }; if (!canbuild) then {_state = true;}; }; if (isNil 'USE_TraderCity') then { USE_TraderCity = true; } else { if (typename USE_TraderCity != 'BOOL') then { USE_TraderCity = true; }; }; if (USE_TraderCity) then { if (isNil 'isInTraderCity') then { isInTraderCity = false; } else { if (typename isInTraderCity != 'BOOL') then { isInTraderCity = false; }; }; if (isInTraderCity) then {_state = true;}; }; if (_state) then { inSafeZone = true; call _startSafeZone; { if (!isNull _x) then { if !(isPlayer _x) then { deletevehicle _x; }; }; } forEach ((vehicle player) nearEntities ['zZombie_Base',50]); if (isNil 'USE_AI_REMOVER') then { USE_AI_REMOVER = false; } else { if (typename USE_AI_REMOVER != 'BOOL') then { USE_AI_REMOVER = false; }; }; if (USE_AI_REMOVER) then { { if ((!isNull group _x) && (getPlayerUID _x == '')) then { deleteVehicle _x; }; } forEach (player nearEntities ['Man',100]); }; } else { inSafeZone = false; }; uiSleep 2; if (!inSafeZone) then { call _endSafeZone; }; }; }; if ((USE_AntiSteal) || (USE_SPEEDLIMIT)) then { [] spawn { _USE_AntiSteal = USE_AntiSteal; _USE_SPEEDLIMIT = USE_SPEEDLIMIT; _speedlimit = SPEEDLIMIT; while {1 == 1} do { if (inSafezone) then { if (_USE_AntiSteal) then { _cnt = {isPlayer _x && _x != player} count (player nearEntities [['CAManBase'],4]); if ((_cnt > 0) && (!isNull (findDisplay 106))) then { (findDisplay 106) closedisplay 0; closeDialog 0;closeDialog 0;closeDialog 0; _log = format['%1 You are not allowed to open Gear while near another player!',name player]; cutText [_log,'PLAIN']; hint _log; }; }; if (_USE_SPEEDLIMIT) then { _obj = vehicle player; if !(_obj isKindOf 'Plane') then { _speed = abs speed _obj; if ((_obj != player) && (_speed > _speedlimit)) then { _vel = velocity _obj; _x = 0.8; if (_speed > 50) then {_x = 0.1;}; _velNew = [(_vel select 0) * _x, (_vel select 1) * _x,(_vel select 2) * _x]; _obj SetVelocity _velNew; }; }; }; } else { uiSleep 2; }; uiSleep .01; }; }; }; Link to comment Share on other sites More sharing options...
juandayz Posted April 18, 2017 Author Report Share Posted April 18, 2017 @Clark ok so you have the bigegg vehicle godmode in this path right? mpmissions\scripts\veh_handleDam\ now. how you call your custom compiles.sqf (the line in init.sqf) and how you call the veh_handleDam.sqf (the line in your custom compiles,sqf) ? Link to comment Share on other sites More sharing options...
Clark Posted April 18, 2017 Report Share Posted April 18, 2017 1 minute ago, juandayz said: @Clark no i called it 'scripts\veh_handleDam\veh_handleDam.sqf'; Link to comment Share on other sites More sharing options...
juandayz Posted April 18, 2017 Author Report Share Posted April 18, 2017 @Clark your "scripts" folder is in your server root? same location as @DAyz_Epoch or Battleye folders? Link to comment Share on other sites More sharing options...
Clark Posted April 18, 2017 Report Share Posted April 18, 2017 its in the missions folder Link to comment Share on other sites More sharing options...
juandayz Posted April 18, 2017 Author Report Share Posted April 18, 2017 2 minutes ago, Clark said: its in the missions folder ok, so im right, is in this path mpmissions\your instance(DayZ_Epoch_11.Chernarus) or other\scripts\veh_handleDam\ Link to comment Share on other sites More sharing options...
Clark Posted April 18, 2017 Report Share Posted April 18, 2017 DayZ_Epoch_11.Chernarus) scripts and then in a folder called veh_handleDam juandayz 1 Link to comment Share on other sites More sharing options...
Clark Posted April 18, 2017 Report Share Posted April 18, 2017 juandayz pm me asking for my teamview and with in minutes he fix the problem i was having loads of respect for going out of his way to help a newbie like me... thanks again S4M, gernika and juandayz 3 Link to comment Share on other sites More sharing options...
juandayz Posted April 18, 2017 Author Report Share Posted April 18, 2017 well for other peoples, the clark issue was a bad call of his custom veh_handleDam.sqf ( he was calling it into !isDedicated section of compiles.sqf and must be called out of here.) and the safezone.sqf also was called into !isDedicated section of init.sqf. must be in the very very bottom. S4M, Clark and gernika 3 Link to comment Share on other sites More sharing options...
axelrocket Posted April 22, 2017 Report Share Posted April 22, 2017 Hello, how can i make 30 sec godmode if i leave the safezone? DieTanx 1 Link to comment Share on other sites More sharing options...
juandayz Posted April 22, 2017 Author Report Share Posted April 22, 2017 12 hours ago, axelrocket said: Hello, how can i make 30 sec godmode if i leave the safezone? try adding below of this: if (_end) then { this: uiSleep 30; DieTanx and gernika 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now