Pro_Speedy Posted March 15, 2014 Report Share Posted March 15, 2014 Hello again, How would i go about about adding 2 exceptions to "Killing a hacker" Like Malsar and Sarge? And liking the new updates, but would still like Server time change and for the 'Speedboost' to toggleable. Thanks Link to comment Share on other sites More sharing options...
NoxSicarius Posted March 15, 2014 Author Report Share Posted March 15, 2014 Hello again, How would i go about about adding 2 exceptions to "Killing a hacker" Like Malsar and Sarge? And liking the new updates, but would still like Server time change and for the 'Speedboost' to toggleable. Thanks Thought speed boost was toggleable. Will fix that right away. It is only like 2 new lines of code. As for time we are still working on it. The ability to execute server side commands was removed years ago int he arma commands so it seems it may be impossible. I am exploring the possibility of making the tool serverside. I believe you are talking about the required edits in the server file, that is where the vehicles blow up and kill you with the message "killed a hacker". To add exception to Sarge, just add the Sarge exception right after the malstar one in step 3 by separating them with && The edit to fix that is as follows: Open your dayz_server folder after unpacking it with your preferred PBO editor. Open init/server_functions.sqf and search the file for the following: if(vehicle _x != _x && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle)) then { Comment out this line and/or replace it with the following: if(vehicle _x != _x && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0] !=1)) then { Now open your compile/server_updateObject.sqf and place this: if (_object getVariable "MalSar" == 1) exitWith {}; ...immediately above this: if (!_parachuteWest and !(locked _object)) then { Repackage the server pbo and upload it to your server. Link to comment Share on other sites More sharing options...
Pro_Speedy Posted March 15, 2014 Report Share Posted March 15, 2014 Thought speed boost was toggleable. Will fix that right away. It is only like 2 new lines of code. As for time we are still working on it. The ability to execute server side commands was removed years ago int he arma commands so it seems it may be impossible. I am exploring the possibility of making the tool serverside. I believe you are talking about the required edits in the server file, that is where the vehicles blow up and kill you with the message "killed a hacker". To add exception to Sarge, just add the Sarge exception right after the malstar one in step 3 by separating them with && The edit to fix that is as follows: Open your dayz_server folder after unpacking it with your preferred PBO editor. Open init/server_functions.sqf and search the file for the following: if(vehicle _x != _x && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle)) then { Comment out this line and/or replace it with the following: if(vehicle _x != _x && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0] !=1)) then { Now open your compile/server_updateObject.sqf and place this: if (_object getVariable "MalSar" == 1) exitWith {}; ...immediately above this: if (!_parachuteWest and !(locked _object)) then { Repackage the server pbo and upload it to your server. So like this if(vehicle _x != _x && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0] && ["Sarge",0] !=1)) then { ??? Link to comment Share on other sites More sharing options...
NoxSicarius Posted March 15, 2014 Author Report Share Posted March 15, 2014 So like this if(vehicle _x != _x && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0] && ["Sarge",0] !=1)) then { ??? if(vehicle _x != _x && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0]) && (vehicle _x getVariable ["Sarge",0] != 1)) then { Link to comment Share on other sites More sharing options...
ebass Posted March 15, 2014 Report Share Posted March 15, 2014 Moving the adminlist won't change anything so long as it is placed in the same spot as the execvm was to be placed. Has this only occurred once or is it a recurring problem? I was able to recreate it multiple times. Link to comment Share on other sites More sharing options...
UltraTM Posted March 15, 2014 Report Share Posted March 15, 2014 Hello, i have a problem with the Adminmenu. i use this pack: https://github.com/daeks/Dayz-DNetwork but not on the nitrado host. have it on my own Windows Root Server. So deleted the one line as shown in readme. Ok the problem when i startup the server and join the first time. Everything works fine. Then i disonnect and join the second time the menu dont work. and in the rpt this happens: 19:47:28 "DISCONNECT: UltraTM (117418694) Object: B 1-1-D:1 (UltraTM) REMOTE, _characterID: 4 at loc [11114.9,3018.53,0.00106096]" 19:47:28 Client: Remote object 3:47 not found 19:47:30 Warning: Cleanup player - person 3:46 not found 19:48:43 "CLEANUP: INITIALIZING CLEANUP SCRIPT" 19:48:46 Error in expression <(typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0])> 19:48:46 Error position: <&& (vehicle _x getVariable ["MalSar",0])> 19:48:46 Error &&: Typ Zahl, erwartet Bool,code 19:48:46 File z\addons\dayz_server\init\server_functions.sqf, line 818 19:49:01 Error in expression <(typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0])> 19:49:01 Error position: <&& (vehicle _x getVariable ["MalSar",0])> 19:49:01 Error &&: Typ Zahl, erwartet Bool,code 19:49:01 File z\addons\dayz_server\init\server_functions.sqf, line 818 19:49:16 Error in expression <(typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0])> 19:49:16 Error position: <&& (vehicle _x getVariable ["MalSar",0])> 19:49:16 Error &&: Typ Zahl, erwartet Bool,code 19:49:16 File z\addons\dayz_server\init\server_functions.sqf, line 818 19:49:32 Error in expression <(typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0])> 19:49:32 Error position: <&& (vehicle _x getVariable ["MalSar",0])> 19:49:32 Error &&: Typ Zahl, erwartet Bool,code 19:49:32 File z\addons\dayz_server\init\server_functions.sqf, line 818 19:49:47 Error in expression <(typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0])> 19:49:47 Error position: <&& (vehicle _x getVariable ["MalSar",0])> 19:49:47 Error &&: Typ Zahl, erwartet Bool,code 19:49:47 File z\addons\dayz_server\init\server_functions.sqf, line 818 19:50:02 Error in expression <(typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0])> 19:50:02 Error position: <&& (vehicle _x getVariable ["MalSar",0])> 19:50:02 Error &&: Typ Zahl, erwartet Bool,code 19:50:02 File z\addons\dayz_server\init\server_functions.sqf, line 818 19:50:17 Error in expression <(typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0])> 19:50:17 Error position: <&& (vehicle _x getVariable ["MalSar",0])> 19:50:17 Error &&: Typ Zahl, erwartet Bool,code 19:50:17 File z\addons\dayz_server\init\server_functions.sqf, line 818 19:50:24 Warning Message: No entry 'bin\config.bin/CfgMagazines.DZ_Backpack_EP1'. 19:50:24 Warning Message: No entry '.picture'. 19:50:24 Warning Message: '/' is not a value 19:50:24 Warning Message: No entry '.scope'. 19:50:24 Warning Message: '/' is not a value 19:50:24 Warning Message: Error: creating magazine DZ_Backpack_EP1 with scope=private 19:50:24 Warning Message: No entry '.displayName'. 19:50:24 Warning Message: '/' is not a value 19:50:24 Warning Message: No entry '.displayNameShort'. 19:50:24 Warning Message: '/' is not a value 19:50:24 Warning Message: No entry '.nameSound'. 19:50:24 Warning Message: '/' is not a value 19:50:24 Warning Message: No entry '.Library'. 19:50:24 Warning Message: No entry '.libTextDesc'. 19:50:24 Warning Message: '/' is not a value 19:50:24 Warning Message: No entry '.type'. 19:50:24 Warning Message: '/' is not a value 19:50:24 Warning Message: No entry '.count'. 19:50:24 Warning Message: '/' is not a value 19:50:24 Warning Message: No entry '.maxLeadSpeed'. 19:50:24 Warning Message: '/' is not a value 19:50:24 Warning Message: No entry '.initSpeed'. 19:50:24 Warning Message: '/' is not a value 19:50:24 Warning Message: No entry '.reloadAction'. 19:50:24 Warning Message: '/' is not a value 19:50:24 Warning Message: No entry '.modelSpecial'. 19:50:24 Warning Message: '/' is not a value 19:50:24 Warning Message: No entry '.ammo'. 19:50:24 Warning Message: '/' is not a value 19:50:24 No owner 19:50:24 No owner 19:50:32 Error in expression <(typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0])> 19:50:32 Error position: <&& (vehicle _x getVariable ["MalSar",0])> 19:50:32 Error &&: Typ Zahl, erwartet Bool,code 19:50:32 File z\addons\dayz_server\init\server_functions.sqf, line 818 19:50:48 Error in expression <(typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0])> 19:50:48 Error position: <&& (vehicle _x getVariable ["MalSar",0])> 19:50:48 Error &&: Typ Zahl, erwartet Bool,code 19:50:48 File z\addons\dayz_server\init\server_functions.sqf, line 818 19:51:03 Error in expression <(typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0])> 19:51:03 Error position: <&& (vehicle _x getVariable ["MalSar",0])> 19:51:03 Error &&: Typ Zahl, erwartet Bool,code 19:51:03 File z\addons\dayz_server\init\server_functions.sqf, line 818 19:51:18 Error in expression <(typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0])> 19:51:18 Error position: <&& (vehicle _x getVariable ["MalSar",0])> 19:51:18 Error &&: Typ Zahl, erwartet Bool,code 19:51:18 File z\addons\dayz_server\init\server_functions.sqf, line 818 19:51:33 Error in expression <(typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0])> 19:51:33 Error position: <&& (vehicle _x getVariable ["MalSar",0])> 19:51:33 Error &&: Typ Zahl, erwartet Bool,code 19:51:33 File z\addons\dayz_server\init\server_functions.sqf, line 818 19:51:48 Error in expression <(typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0])> 19:51:48 Error position: <&& (vehicle _x getVariable ["MalSar",0])> 19:51:48 Error &&: Typ Zahl, erwartet Bool,code 19:51:48 File z\addons\dayz_server\init\server_functions.sqf, line 818 19:52:03 Error in expression <(typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0])> 19:52:03 Error position: <&& (vehicle _x getVariable ["MalSar",0])> 19:52:03 Error &&: Typ Zahl, erwartet Bool,code 19:52:03 File z\addons\dayz_server\init\server_functions.sqf, line 818 19:52:19 Error in expression <(typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0])> 19:52:19 Error position: <&& (vehicle _x getVariable ["MalSar",0])> 19:52:19 Error &&: Typ Zahl, erwartet Bool,code 19:52:19 File z\addons\dayz_server\init\server_functions.sqf, line 818 19:52:34 Error in expression <(typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0])> 19:52:34 Error position: <&& (vehicle _x getVariable ["MalSar",0])> 19:52:34 Error &&: Typ Zahl, erwartet Bool,code 19:52:34 File z\addons\dayz_server\init\server_functions.sqf, line 818 19:52:49 Error in expression <(typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0])> 19:52:49 Error position: <&& (vehicle _x getVariable ["MalSar",0])> 19:52:49 Error &&: Typ Zahl, erwartet Bool,code 19:52:49 File z\addons\dayz_server\init\server_functions.sqf, line 818 19:53:04 Error in expression <(typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0])> 19:53:04 Error position: <&& (vehicle _x getVariable ["MalSar",0])> 19:53:04 Error &&: Typ Zahl, erwartet Bool,code 19:53:04 File z\addons\dayz_server\init\server_functions.sqf, line 818 19:53:19 Error in expression <(typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0])> 19:53:19 Error position: <&& (vehicle _x getVariable ["MalSar",0])> 19:53:19 Error &&: Typ Zahl, erwartet Bool,code 19:53:19 File z\addons\dayz_server\init\server_functions.sqf, line 818 19:53:34 Error in expression <(typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0])> 19:53:34 Error position: <&& (vehicle _x getVariable ["MalSar",0])> 19:53:34 Error &&: Typ Zahl, erwartet Bool,code 19:53:34 File z\addons\dayz_server\init\server_functions.sqf, line 818 19:53:43 "TIME SYNC: Local Time set to [2013,8,3,13,53]" 19:53:50 Error in expression <(typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0])> 19:53:50 Error position: <&& (vehicle _x getVariable ["MalSar",0])> 19:53:50 Error &&: Typ Zahl, erwartet Bool,code 19:53:50 File z\addons\dayz_server\init\server_functions.sqf, line 818 19:54:05 Error in expression <(typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0])> 19:54:05 Error position: <&& (vehicle _x getVariable ["MalSar",0])> 19:54:05 Error &&: Typ Zahl, erwartet Bool,code 19:54:05 File z\addons\dayz_server\init\server_functions.sqf, line 818 19:54:20 Error in expression <(typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0])> 19:54:20 Error position: <&& (vehicle _x getVariable ["MalSar",0])> 19:54:20 Error &&: Typ Zahl, erwartet Bool,code 19:54:20 File z\addons\dayz_server\init\server_functions.sqf, line 818 19:54:35 Error in expression <(typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0])> 19:54:35 Error position: <&& (vehicle _x getVariable ["MalSar",0])> 19:54:35 Error &&: Typ Zahl, erwartet Bool,code 19:54:35 File z\addons\dayz_server\init\server_functions.sqf, line 818 19:54:50 Error in expression <(typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0])> 19:54:50 Error position: <&& (vehicle _x getVariable ["MalSar",0])> 19:54:50 Error &&: Typ Zahl, erwartet Bool,code 19:54:50 File z\addons\dayz_server\init\server_functions.sqf, line 818 19:55:05 Error in expression <(typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0])> 19:55:05 Error position: <&& (vehicle _x getVariable ["MalSar",0])> 19:55:05 Error &&: Typ Zahl, erwartet Bool,code 19:55:05 File z\addons\dayz_server\init\server_functions.sqf, line 818 19:55:21 Error in expression <(typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0])> 19:55:21 Error position: <&& (vehicle _x getVariable ["MalSar",0])> 19:55:21 Error &&: Typ Zahl, erwartet Bool,code 19:55:21 File z\addons\dayz_server\init\server_functions.sqf, line 818 19:55:36 Error in expression <(typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0])> 19:55:36 Error position: <&& (vehicle _x getVariable ["MalSar",0])> 19:55:36 Error &&: Typ Zahl, erwartet Bool,code 19:55:36 File z\addons\dayz_server\init\server_functions.sqf, line 818 Theres my disconnect inside. before now errors nothing. heres the line in my file: server_checkHackers = { if (DZE_DYN_AntiStuck2nd > 3) then { DZE_DYN_HackerCheck = nil; DZE_DYN_AntiStuck2nd = 0; }; if(!isNil "DZE_DYN_HackerCheck") exitWith { DZE_DYN_AntiStuck2nd = DZE_DYN_AntiStuck2nd + 1;}; DZE_DYN_HackerCheck = true; { if(vehicle _x != _x && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0]) && (vehicle _x getVariable ["Sarge",0] != 1)) then { diag_log ("CLEANUP: KILLING A HACKER " + (name _x) + " " + str(_x) + " IN " + (typeOf vehicle _x)); (vehicle _x) setDamage 1; _x setDamage 1; sleep 0.25; }; sleep 0.001; } forEach allUnits; DZE_DYN_HackerCheck = nil; }; Link to comment Share on other sites More sharing options...
NoxSicarius Posted March 15, 2014 Author Report Share Posted March 15, 2014 I was able to recreate it multiple times. Have you tried reinstalling the tool? It is set to reexecute the tool every few seconds so something is stopping this from happening. Link to comment Share on other sites More sharing options...
Pro_Speedy Posted March 15, 2014 Report Share Posted March 15, 2014 if(vehicle _x != _x && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0]) && (vehicle _x getVariable ["Sarge",0] != 1)) then { This gives me a tonne of errors Link to comment Share on other sites More sharing options...
NoxSicarius Posted March 15, 2014 Author Report Share Posted March 15, 2014 This gives me a tonne of errors What does the mod for the sarge thing tell you to add to the antihack? I probably didn't find the correct link for the mod you used. Link to comment Share on other sites More sharing options...
calamity Posted March 15, 2014 Report Share Posted March 15, 2014 how could I add vehicles to the spawn vehicle tool ?? this has more than likely already coverd her somewhere but there are 28 pages and I cant find it Link to comment Share on other sites More sharing options...
NoxSicarius Posted March 16, 2014 Author Report Share Posted March 16, 2014 how could I add vehicles to the spawn vehicle tool ?? this has more than likely already coverd her somewhere but there are 28 pages and I cant find it Put temporary vehicles in the vehicletempmenus at the bottom of this file: Click ME Just follow the example of the other vehicles listed there. To put a permanent lockable one you need to place it in the malvehiclemenu here: CLICK ME Again just follow the example of the other vehicles listed there. Link to comment Share on other sites More sharing options...
NoxSicarius Posted March 16, 2014 Author Report Share Posted March 16, 2014 MINOR Update! This update is not mandatory. It fixes a small bug and cleans up the files. Bug Fix: Speed Boost is now toggles. It is no longer stuck on after first use. Clean up: Fixed some text and cleaned code in multiple files Download Now Link to comment Share on other sites More sharing options...
NoxSicarius Posted March 16, 2014 Author Report Share Posted March 16, 2014 For those waiting for a server time/weather changer in the tools: After a large amount of research there seems to be no way to execute server side commands from client side tools. I will see what it is like with the tools integrated server side if at all possible. If anyone knows of a command that will work for the time/weather please let me know. Link to comment Share on other sites More sharing options...
UltraTM Posted March 16, 2014 Report Share Posted March 16, 2014 Hi NoxSicarius, can you also have a look at my problem with this nice epoch where a lots of good mods are allready inside? Would be very nice from you :) Link to comment Share on other sites More sharing options...
NoxSicarius Posted March 16, 2014 Author Report Share Posted March 16, 2014 Hi NoxSicarius, can you also have a look at my problem with this nice epoch where a lots of good mods are allready inside? Would be very nice from you :) I Have been looking at it. Still trying to find the exact source of the problem. Haven't had a large amount of time though. Link to comment Share on other sites More sharing options...
NoxSicarius Posted March 16, 2014 Author Report Share Posted March 16, 2014 Hi NoxSicarius, can you also have a look at my problem with this nice epoch where a lots of good mods are allready inside? Would be very nice from you :) Show me your init file as well. Post it in pastebin or in a hint box with code tags so it isn't a page long. Do the same with your server_functions.sqf. I can't seem to discern the problem from the rpt alone. It seems you really messed up in the server.pbo somewhere. Link to comment Share on other sites More sharing options...
Pro_Speedy Posted March 16, 2014 Report Share Posted March 16, 2014 What does the mod for the sarge thing tell you to add to the antihack? I probably didn't find the correct link for the mod you used. Just SARGE but i still get errors with the code you provided. Please help Link to comment Share on other sites More sharing options...
NoxSicarius Posted March 17, 2014 Author Report Share Posted March 17, 2014 Just SARGE but i still get errors with the code you provided. Please help I need a link or something man. This is not very much for me to go on. What are you adding a sarge exception for? Are you dying when entering a vehicle spawned by a sarge mod (I am guessing Sarge AI)? Be as descriptive as possible and I will do what I can. ebass 1 Link to comment Share on other sites More sharing options...
Pro_Speedy Posted March 17, 2014 Report Share Posted March 17, 2014 Basically players are dying when they enter an AI heli patrol that landed, i need to add an exception for the Admin tool vehicles and Sarge vehicles? Or if someone knows how to get the Ai heli's to despawn a few seconds after they crash landed that would be great Thanks Link to comment Share on other sites More sharing options...
Pro_Speedy Posted March 17, 2014 Report Share Posted March 17, 2014 This is the error 14:58:36 File z\addons\dayz_server\init\server_functions.sqf, line 80914:58:51 Error in expression <(typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0])>14:58:51 Error position: <&& (vehicle _x getVariable ["MalSar",0])>14:58:51 Error &&: Type Number, expected Bool,code14:58:51 File z\addons\dayz_server\init\server_functions.sqf, line 80914:59:06 Error in expression <(typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0])>14:59:06 Error position: <&& (vehicle _x getVariable ["MalSar",0])> Link to comment Share on other sites More sharing options...
Cinjun Posted March 17, 2014 Report Share Posted March 17, 2014 This is the error This is incorrect: if(vehicle _x != _x && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0]) && (vehicle _x getVariable ["Sarge",0] != 1)) then { It should be this: if(vehicle _x != _x && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0] != 1) && (vehicle _x getVariable ["Sarge",0] != 1)) then { Link to comment Share on other sites More sharing options...
NoxSicarius Posted March 17, 2014 Author Report Share Posted March 17, 2014 Yep, I seem to have missed that !=1 Link to comment Share on other sites More sharing options...
Pellaeon Posted March 17, 2014 Report Share Posted March 17, 2014 19:27:10 Error context vehicle _x != _x && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && (vehicle _x getVariable [""Sarge"",0] != 1) &&!((typeOf vehicle _x) in DZE_safeVehicle)) then {" \n I would look at this line in your init/server_functions.sqf. Per the instructions, I do not see the MalSar portion. Also the double quotes around SargeAI is a syntax error too, it should be single quotes, not double. Checked - it works! Thank you! Link to comment Share on other sites More sharing options...
Cinjun Posted March 17, 2014 Report Share Posted March 17, 2014 Checked - it works! Thank you! Good deal. :) Link to comment Share on other sites More sharing options...
GeneralTragedy Posted March 17, 2014 Report Share Posted March 17, 2014 Here's another update (or addition, however you want to look at it) to the "point to repair" functionality. Basically, this is an adaptation from AxeCop's Service Point Refuel/Repair/Rearm script, so most of the credit goes to him. :) This script will make repairs permanent, rather than temporary. // Adapted from Vehicle Service Point (Repair) by Axe Cop, minor adaptions by GeneralTragedy private ["_vehicle","_args","_costs","_repairTime","_type","_name","_hitpoints","_allRepaired"]; _vehicle = cursorTarget; _type = typeOf _vehicle; _name = getText(configFile >> "cfgVehicles" >> _type >> "displayName"); _hitpoints = _vehicle call vehicle_getHitpoints; _allRepaired = true; { private ["_damage","_selection"]; _damage = [_vehicle,_x] call object_getHit; if (_damage > 0) then { _selection = getText(configFile >> "cfgVehicles" >> _type >> "HitPoints" >> _x >> "name"); [_vehicle,_selection,0] call object_setFixServer; }; } forEach _hitpoints; if (_allRepaired) then { _vehicle setDamage 0; _vehicle setFuel 1; _vehicle setVehicleAmmo 1; _vehicle setVelocity [0,0,1]; titleText [format["%1 repaired, refuelled and rearmed. Point to repair successful.", _name], "PLAIN DOWN"]; }; Cheers, GT 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