mirror of
https://github.com/Bjanski/ExAd.git
synced 2024-08-30 16:52:14 +00:00
commit
e9eae04662
@ -90,6 +90,10 @@ _player removeItem "Exile_Item_Laptop";
|
||||
_flag = ((getPos _object) nearObjects ["Exile_Construction_Flag_Static", 150]) select 0;
|
||||
_flag setVariable ["ExAd_HACKS_SUCCEEDED", (_flag getVariable ["ExAd_HACKS_SUCCEEDED",0]) + 1];
|
||||
if(_object isKindOf "Exile_Construction_Flag_Static")then{
|
||||
if(!isClass(configFile >> "CfgPatches" >> "ExAd_VG"))then{
|
||||
["startHack", "You are missing the ExAd_VG dependenci to run this function.", true] call ExAd_fnc_debugHandler;
|
||||
"This server isn't using the ExAd Virtual Garage, tell the admins to get a grip!!"
|
||||
}else{
|
||||
private ["_vehList","_objId","_vehObj","_extDB2Message","_pos"];
|
||||
_vehList = _object getVariable ["ExAdVGVeh", []];
|
||||
if((count _vehList) > 0)then{
|
||||
@ -114,6 +118,7 @@ _player removeItem "Exile_Item_Laptop";
|
||||
}else{
|
||||
STR_ExAd_HACKING_NOTI_VG_NO_VEH
|
||||
}
|
||||
}
|
||||
}else{
|
||||
_object setVariable ["ExileIsLocked",0,true];
|
||||
STR_ExAd_HACKING_NOTI_SAFE_SUCCESS
|
||||
|
@ -19,7 +19,7 @@
|
||||
class CfgPatches {
|
||||
class ExAd_Hacking {
|
||||
requiredVersion = 0.1;
|
||||
requiredAddons[] = {"ExAd_Core", "ExAd_VG"};
|
||||
requiredAddons[] = {"ExAd_Core"};
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user