Fox
Well-Known Member
// comment it out 
send from my Galaxy S2 using tapatalk
send from my Galaxy S2 using tapatalk
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.
_pathtotools = "admintools\tools\";
_pathtoskins = "admintools\skins\";
_pathtoweapon = "admintools\weaponkits\";
_pathtoshields = "admintools\shields\";
_pathtovehicles = "admintools\vehicles\";
_EXECscript1 = 'player execVM "'+_pathtotools+'%1"';
_EXECscript2 = 'player execVM "'+_pathtoskins+'%1"';
_EXECscript3 = 'player execVM "'+_pathtoweapon+'%1"';
_EXECscript4 = 'player execVM "'+_pathtoshields+'%1"';
_EXECscript5 = 'player execVM "'+_pathtovehicles+'%1"';
//customise these menus to fit your server
if ((getPlayerUID player) in []) then { //all admins
if ((getPlayerUID player) in []) then { //mods
adminmenu =
[
["",true],
["Tools Menu", [2], "#USER:ModToolsMenu", -5, [["expression", ""]], "1", "1"],
["Skins Menu", [3], "#USER:SkinsMenu", -5, [["expression", ""]], "1", "1"],
["Weapon Kits", [4], "#USER:WeaponMenu", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];};
if ((getPlayerUID player) in []) then { //admins
adminmenu =
[
["",true],
["Tools Menu", [2], "#USER:AdminToolsMenu", -5, [["expression", ""]], "1", "1"],
["Skins Menu", [3], "#USER:SkinsMenu", -5, [["expression", ""]], "1", "1"],
["Weapon Kits", [4], "#USER:WeaponMenu", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];};
if ((getPlayerUID player) in ["125064390"]) then { // super admins
adminmenu =
_pathtotools = "admintools\tools\";
_pathtoskins = "admintools\skins\";
_pathtoweapon = "admintools\weaponkits\";
_pathtoshields = "admintools\shields\";
_pathtovehicles = "admintools\vehicles\";
_EXECscript1 = 'player execVM "'+_pathtotools+'%1"';
_EXECscript2 = 'player execVM "'+_pathtoskins+'%1"';
_EXECscript3 = 'player execVM "'+_pathtoweapon+'%1"';
_EXECscript4 = 'player execVM "'+_pathtoshields+'%1"';
_EXECscript5 = 'player execVM "'+_pathtovehicles+'%1"';
Did you change server_cleanup.fsm and server_updateobjects.sqf ?Also make sure in you vehicles folder that all the vehicle sqf files have this on a line.I added the code to the server_cleanup.fsm to fix killed a hacker. But vehicle still despawn when trying to enter them. How do I make so I can actually use these spawned vehicles properly? And without dying instantly?
_spwnveh setVariable ["Sarge",1,true];
Does anyone know how to do this?How can i change the debug monitor from being activated in menu to forcing it on all the time?
And how to remove the menu option from the standard user actions?
you need to add your player ID in the red section alsoi can get onto the server but when i press the "Tools" button when scrolling nothing happens
this is the beginning of my AdminToolsMain (Using no debug version)
//customise these menus to fit your server
if ((getPlayerUID player) in []) then { //all admins
if ((getPlayerUID player) in []) then { //mods
adminmenu =
[
["",true],
["Tools Menu", [2], "#USER:ModToolsMenu", -5, [["expression", ""]], "1", "1"],
["Skins Menu", [3], "#USER:SkinsMenu", -5, [["expression", ""]], "1", "1"],
["Weapon Kits", [4], "#USER:WeaponMenu", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];};
if ((getPlayerUID player) in []) then { //admins
adminmenu =
[
["",true],
["Tools Menu", [2], "#USER:AdminToolsMenu", -5, [["expression", ""]], "1", "1"],
["Skins Menu", [3], "#USER:SkinsMenu", -5, [["expression", ""]], "1", "1"],
["Weapon Kits", [4], "#USER:WeaponMenu", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];};
if ((getPlayerUID player) in ["125064390"]) then { // super admins
adminmenu =
the underscores make them local variables in other words there only used in the script that there inCode:_pathtotools = "admintools\tools\"; _pathtoskins = "admintools\skins\"; _pathtoweapon = "admintools\weaponkits\"; _pathtoshields = "admintools\shields\"; _pathtovehicles = "admintools\vehicles\"; _EXECscript1 = 'player execVM "'+_pathtotools+'%1"'; _EXECscript2 = 'player execVM "'+_pathtoskins+'%1"'; _EXECscript3 = 'player execVM "'+_pathtoweapon+'%1"'; _EXECscript4 = 'player execVM "'+_pathtoshields+'%1"'; _EXECscript5 = 'player execVM "'+_pathtovehicles+'%1"';
That reminds me, Blue, I was wondering: Why the underscores? I updated everything manually, so I added the access hierarchy and assigned some stuff do different users. But I never copied the underscores and everything still works. Was it just for code convention?
addDoes anyone know how to do this?
[] execVM "debug\playerstats.sqf";
i am still trying to figure this outIm a little confused. I can spawn in things like fighter jets using the new options but for some reason I cannot spawn in the ArmoredSUV_PMC, CH_47F_BAF and some others. Why cant i get some banned vehicles when I can get others??
yes that works BUT it opens a massive security hole that "hackers" can with no effort walk throughMy fix for DayZ CC 5.9.2.0 : saving loot / gear to tents correctly and no Vehiclerespawn after restart with the new tool version !
it worx on both of my servers !
server_objectUpdate.sqf
//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;
//};
//};
server_cleanup.fsm
/*%FSM</STATE>*/
/*%FSM<STATE "check_for_hacker">*/
class check_for_hacker
{
name="check_for_hacker";
init=/*%FSM<STATEINIT""">*/"//Check for hackers" \n
"// {" \n
"//if (vehicle _x != _x) then {" \n
"//if (!(vehicle _x in _safety) && ((typeOf vehicle _x) != ""ParachuteWest"")) then {" \n
"//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
"//};" \n
"// } forEach allUnits;" \n
""/*%FSM</STATEINIT""">*/;
precondition=/*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;
class Links
{
/*%FSM<LINK "true">*/
class true
{
priority=0.000000;
to="waiting";
precondition=/*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
condition=/*%FSM<CONDITION""">*/"true"/*%FSM</CONDITION""">*/;
action=/*%FSM<ACTION""">*/""/*%FSM</ACTION""">*/;
};
/*%FSM</LINK>*/
};
};
/*%FSM</STATE>*/
};
if i teleport on the map then i cant move... and if i press then W + Space i get resetted to my old position....and.. i cant teleport my clan mates to me (they are there for a second and then gone to their old position... whats wrong there? =(
getting this message at RPT
"TELEPORT REVERT: [****] Era (9) from [13130.8,3899.03,0.00143957] to [10997.5,2826.27,0.239999] now at [13130.8,3899.03,0.00143957]"
21:46:59 Wrong text element 'null'
working on a scrip that will delete the deploy-able(tents, wire..ect) at the cursor from the map and DB
5 "CBA_EVENT_KEY_LOGIC setDamage 1;"
1 "_tp = \"removeallweapons player;"
5 "player addweapon 'Truckhorn2';"
5 "player selectweapon 'Truckhorn2';"
5 "player setVehicleInit _svr;"
5 "_object = createVehicle ['%1', [%2, %3, %4], [], 0, 'CAN_COLLIDE'];"
5 "player setVariable['lastPos',0];"
What do your lines around 242 look like?Well, getting kicked for script restriction 229 when I try opening the tools menu. I know people say that you go two numbers above or below the number referenced, but I can't remember. Here's line 229 with the 3 lines before it and the 3 lines after it:
Which one needs to be adjusted?Code:5 "CBA_EVENT_KEY_LOGIC setDamage 1;" 1 "_tp = \"removeallweapons player;" 5 "player addweapon 'Truckhorn2';" 5 "player selectweapon 'Truckhorn2';" 5 "player setVehicleInit _svr;" 5 "_object = createVehicle ['%1', [%2, %3, %4], [], 0, 'CAN_COLLIDE'];" 5 "player setVariable['lastPos',0];"
Just for reference.Hey, I'm sorry if this question is stupid but what exactly do I do with the provided init.sqf? Do I overwrite the original, Or is it just for reference?
What do your lines around 242 look like?
5 TKCV1_0\TKCOWNS.sqf
5 "[_this,\"players\"] execVM \"\ca\ui\scripts\dedicatedServerInterface.sqf\";"
5 "_v addweapon \"A\"+\"A1\"+\"2_PM\"+\"C\"; _v addmagazine \"20R\"+\"nd"
5 "zombieshield"
5 "playershield"
yes and no, i can remove the objects from the map but they come back on restart we are working to complete the script and hope to have it 100% soonany success on this?