DayZ Admin Tools - Vehicle Explodes

Marchy

New Member
So I spawn a vehicle in to the game, hop in it and it explodes. Then after that, Battleye kicks me for "RemoteExec Restriction #0"

Anyone have any ideas how to fix this?
 
This is from the Admin Tools Readme.txt Hope it helps.

====Step 1 Adjust your server\system\server_cleanup.fsm

Depends which DayZ version you are running.

The line you are looking for is either:

" if (!(vehicle _x in _safety) && ((typeOf vehicle _x) != ""ParachuteWest"") ) then {" \n

Change to / add as shown:

" if (!(vehicle _x in _safety) && ((typeOf vehicle _x) != ""ParachuteWest"") && (vehicle _x getVariable ["Sarge",0] != 1) ) then {" \n

Or the line looks like

if(vehicle _x != _x && !(vehicle _x in _safety) && (typeOf vehicle _x) != ""ParachuteWest"") then {" \n

Change that to

if(vehicle _x != _x && (vehicle _x getVariable ["Sarge",0] != 1) && !(vehicle _x in _safety) && (typeOf vehicle _x) !=


=====Step 2 server\compiles\ server_objectUpdate.sqf
find

if (!_parachuteWest) then {
if (_objectID == "0" && _uid == "0") then {
_object_position = getPosATL _object;
diag_log format ["DEBUG: Deleting object %1 with invalid ID at [%2,%3,%4]", typeOf _object, _object_position select 0, _object_position select 1, _object_position select 2];
_isNotOk = true;
};
};

and change to


if (!_parachuteWest) then {
if (_objectID == "0" && _uid == "0" && (vehicle _object getVariable ["Sarge",0] != 1)) then {
_object_position = getPosATL _object;
diag_log format ["DEBUG: Deleting object %1 with invalid ID at [%2,%3,%4]", typeOf _object, _object_position select 0, _object_position select 1, _object_position select 2];
_isNotOk = true;
};
};

Step 3 BattlEye===========================================

battleye
=========
provided by inkko
theres are all of the changes that need to be made
do NOT delete the line only add the exception if you need a exzample please go here
http://opendayz.net/threads/dayz-admin-tools.8576/page-34#post-33299
These are all the changes I made in my scripts.txt
Code:
----------------------------------------
script restriction !exception
----------------------------------------
//dayzesp.sqf is the only one I went line by line and made all the exact restrictions for
5 addGroupIcon !"dayzesp.sqf"
5 setMarkerPosLocal !"dayzesp.sqf"
5 onMapSingleClick !"dayzesp.sqf"
5 setPosASL2 !"dayzesp.sqf"
5 openMap !"dayzesp.sqf"
5 drawIcon !"dayzesp.sqf"

----------------------------------------

1 addPublicVariableEventHandler !"healp.sqf"
5 setHit !"healp.sqf"
1 setVariable !"healp.sqf"

-----------------------------------------

5 setVehicleAmmo !"looknrepair.sqf"
5 setDamage !"looknrepair.sqf"
5 setDammage !"looknrepair.sqf"

------------------------------------------

5 "zombieshield" !"zombieshield.sqf"

------------------------------------------

//covers all the weapon switches/backpack changes
5 addWeapon !"items.sqf"
5 addWeaponCargo !"items.sqf"
5 addMagazine !"items.sqf"
5 addMagazineCargo !"items.sqf"
5 addBackpack !"items.sqf"
5 addBackpackCargo !"items.sqf"

--------------------------------------------

1 allowDamage !"Godmode.sqf"
1 allowDammage !"Godmode.sqf"
5 setDammage !"Godmode.sqf"
5 setVehicleAmmo !"Godmode.sqf"
5 "God mode" !"Godmode.sqf"
5 GodMode !"Godmode.sqf"

---------------------------------------------

5 setDammage !"cargod.sqf"
1 setFuel !"cargod.sqf"
5 setVehicleAmmo !"cargod.sqf"
5 "God mode" !"cargod.sqf"
5 GodMode !"cargod.sqf"

---------------------------------------------

Example for some of the lines...

Script Restriction | Exception

5 setMarkerPosLocal !"\"setMarkerPosLocal\"," !"dayzesp.sqf"," !"rsetMarkerPosLocal = 'setMarkerPosLocal'" !"rsetMarkerPosLocalcode = compile PreprocessFile (BIS_PathMPscriptCommands + 'setMarkerPosLocal.sqf')"


5 setDammage !"\"setDammage\"," !"looknrepair.sqf"," !"Godmode.sqf"," !"cargod.sqf"

I like to put my exceptions near the beginning rather then the end since I find it easier to find them if I need to later on.
 
Back
Top