Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Change the sqf from vehicles to what ever your script is, inside admintoolsmenu.didnt work, just sending the building menu to vehicle menu. i double checked it, not sure what i missed. any help?
Sorry I am half asleep. What do you have in the menu for the buildings? Like does it call BuildingMenu instae of VehicleMenu?this is what i did: (added a buildings folder, inside the folder is the buildingnamehere.sqf files. using same format as the vehicle spawns, with ID replaced with Land_Mil_Barracks_i (or whatever)
_pathtobuildings = "admintools\buildings\";
_EXECscript6 = 'player execVM "'+_pathtobuildings+'%1"';
BuildingMenu =
[
["",true],
["Barracks", [2], "", -5, [["expression", format[_EXECscript6,"Land_Mil_Barracks_i.sqf"]]], "1", "1"],
Sry man building menu doesnt work as you said earlierexample, my Land_Mil_Barracks_i.sqf is:
_spawn = "Land_Mil_Barracks_i";
_posplr = [((getPos player) select 0) + 2, ((getPos player) select 1) + 2, 0];
_dirplr = getDir player;
_spwnveh = _spawn createVehicle (_posplr);
_spwnveh setVariable ["Sarge",1,true];
Ive already gotten buildings to spawn using the tools. but i added an extra menu, a buildings menu.. but when im in game when i go to access it, its taken me to vehicle menu.. but i dont get why because i have:
_pathtobuildings = "admintools\buildings\";
_EXECscript6 = 'player execVM "'+_pathtobuildings+'%1"';
cant test now, freaking dayz.st is getting hit hard with DDoS attacks
Give us a download link for your mission.pbo, ill take a lookexample, my Land_Mil_Barracks_i.sqf is:
_spawn = "Land_Mil_Barracks_i";
_posplr = [((getPos player) select 0) + 2, ((getPos player) select 1) + 2, 0];
_dirplr = getDir player;
_spwnveh = _spawn createVehicle (_posplr);
_spwnveh setVariable ["Sarge",1,true];
Ive already gotten buildings to spawn using the tools. but i added an extra menu, a buildings menu.. but when im in game when i go to access it, its taken me to vehicle menu.. but i dont get why because i have:
_pathtobuildings = "admintools\buildings\";
_EXECscript6 = 'player execVM "'+_pathtobuildings+'%1"';
cant test now, freaking dayz.st is getting hit hard with DDoS attacks
Problem has now been fixed, tiny mistake now resolved
"//Check for hackers" \n
" {" \n
" if(vehicle _x != _x && (vehicle _x getVariable ["Sarge",0] != 1) && !(vehicle _x in _safety) && (typeOf vehicle _x) !=
" diag_log (""CLEANUP: KILLING A HACKER "" + (name _x) + "" "" + str(_x) + "" IN "" + (typeOf vehicle _x));" \n
" (vehicle _x) setDamage 1;" \n
" _x setDamage 1;" \n
" };" \n
" } forEach allUnits;" \n
if (!_parachuteWest) then {
if (_objectID == "0" && _uid == "0" && (vehicle _object getVariable ["Sarge",0] != 1)) then
{
_object_position = getPosATL _object;
diag_log(format["Deleting object %1 with invalid ID at pos [%2,%3,%4]",
typeOf _object,
_object_position select 0,
_object_position select 1,
_object_position select 2]);
_isNotOk = true;
};
};
if (_isNotOk) exitWith { deleteVehicle _object; };
_lastUpdate = _object getVariable ["lastUpdate",time];
_needUpdate = _object in needUpdate_objects;
when i teleport i cant move?open your map and left alt + click on the map
github cut off part of the line use thisOkay I just want to make sure I am doing this part correct. I have just change my server_cleanup and my server_updateobjects to Sarge's way.
My server_cleanup.fsm part now looks like this:
Code:"//Check for hackers" \n " {" \n " if(vehicle _x != _x && (vehicle _x getVariable ["Sarge",0] != 1) && !(vehicle _x in _safety) && (typeOf vehicle _x) != " diag_log (""CLEANUP: KILLING A HACKER "" + (name _x) + "" "" + str(_x) + "" IN "" + (typeOf vehicle _x));" \n " (vehicle _x) setDamage 1;" \n " _x setDamage 1;" \n " };" \n " } forEach allUnits;" \n
and my server_updateobject.sqf now looks like this:
Code:if (!_parachuteWest) then { if (_objectID == "0" && _uid == "0" && (vehicle _object getVariable ["Sarge",0] != 1)) then { _object_position = getPosATL _object; diag_log(format["Deleting object %1 with invalid ID at pos [%2,%3,%4]", typeOf _object, _object_position select 0, _object_position select 1, _object_position select 2]); _isNotOk = true; }; }; if (_isNotOk) exitWith { deleteVehicle _object; }; _lastUpdate = _object getVariable ["lastUpdate",time]; _needUpdate = _object in needUpdate_objects;
Did I do this correctly? I was using the old way before but I had to use a new server pbo
=EDIT=
Well I went ahead and tried it on my test server and didn't work. It has something to do with the server_cleanup.fsm if anyone could show me where I messed up.
" if (!(vehicle _x in _safety) && ((typeOf vehicle _x) != ""ParachuteWest"") && (vehicle _x getVariable [""Sarge"",0] != 1) ) then {" \n