The reason some people are getting kicked is because the script uses the function createVehicle which is detected in remoteexec.log. This means that any updated server will probably auto-kick for it. This log can also be used to report you to BE for a global ban.
If you want to make this safer, replace the command createVehicle with createVehiclelocal. This will make the box only visible on your screen (aka other players can not see it), but it will also prevent it from being detected by the server. You can always loot stuff from the box and put it on the ground, in a tent, or in a vehicle for your friends afterwards.
tl;dr:
replace:
with:
ExtraNote: Backpacks show up in logs. Its not very good to have 5 of every backpack show up in a createvehicle.log. I would personally remove all backpacks from this script as well, and just give yourself one at a time as needed with a basic player addBackPack "DZ_Backpack_EP1"; command.
If you want to remove the backpacks, delete the following 3 lines of code:
If you want to make this safer, replace the command createVehicle with createVehiclelocal. This will make the box only visible on your screen (aka other players can not see it), but it will also prevent it from being detected by the server. You can always loot stuff from the box and put it on the ground, in a tent, or in a vehicle for your friends afterwards.
tl;dr:
replace:
Code:
_magicbox = createVehicle [_className, _mypos, [], 0, "CAN_COLLIDE"];
Code:
_magicbox = createVehiclelocal [_className, _mypos, [], 0, "CAN_COLLIDE"];
If you want to remove the backpacks, delete the following 3 lines of code:
Code:
_dayz_bpk =["DZ_Backpack_EP1","CZ_VestPouch_EP1","DZ_Patrol_Pack_EP1","DZ_Assault_Pack_EP1","DZ_CivilBackpack_EP1","DZ_ALICE_Pack_EP1"];
Code:
clearBackpackCargoGlobal _magicbox;
Code:
{_magicbox addBackpackCargoGlobal [_x,5];} forEach _dayz_bpk;
#31 ·

Maybe try it a second time if it doesn't work! 
now- when i spawn it battleye kicks me... (I do use a batleeye bypasser thank god)