mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Update server_securityfunctions.sqf
This commit is contained in:
parent
4626c22ce1
commit
3481042f86
@ -1134,6 +1134,9 @@ call compile ("'"+_skn_doAdminRequest+"' addPublicVariableEventHandler {
|
|||||||
_return = false;
|
_return = false;
|
||||||
if (_item isKindOf 'Air' || _item isKindOf 'Ship' || _item isKindOf 'LandVehicle') then {
|
if (_item isKindOf 'Air' || _item isKindOf 'Ship' || _item isKindOf 'LandVehicle') then {
|
||||||
if !(EPOCH_VehicleSlots isEqualTo[]) then {
|
if !(EPOCH_VehicleSlots isEqualTo[]) then {
|
||||||
|
_serverSettingsConfig = configFile >> "CfgEpochServer";
|
||||||
|
_removeweapons = [_serverSettingsConfig, "removevehweapons", []] call EPOCH_fnc_returnConfigEntry;
|
||||||
|
_removemagazinesturret = [_serverSettingsConfig, "removevehmagazinesturret", []] call EPOCH_fnc_returnConfigEntry;
|
||||||
_position = getPosATL _target;
|
_position = getPosATL _target;
|
||||||
|
|
||||||
_slot = EPOCH_VehicleSlots select 0;
|
_slot = EPOCH_VehicleSlots select 0;
|
||||||
@ -1151,6 +1154,18 @@ call compile ("'"+_skn_doAdminRequest+"' addPublicVariableEventHandler {
|
|||||||
clearMagazineCargoGlobal _vehObj;
|
clearMagazineCargoGlobal _vehObj;
|
||||||
clearBackpackCargoGlobal _vehObj;
|
clearBackpackCargoGlobal _vehObj;
|
||||||
clearItemCargoGlobal _vehObj;
|
clearItemCargoGlobal _vehObj;
|
||||||
|
|
||||||
|
if !(_removeweapons isequalto []) then {
|
||||||
|
{
|
||||||
|
_vehObj removeWeaponGlobal _x;
|
||||||
|
} foreach _removeweapons;
|
||||||
|
};
|
||||||
|
if !(_removemagazinesturret isequalto []) then {
|
||||||
|
{
|
||||||
|
_vehObj removeMagazinesTurret _x;
|
||||||
|
} foreach _removemagazinesturret;
|
||||||
|
};
|
||||||
|
|
||||||
_vehObj lock true;
|
_vehObj lock true;
|
||||||
|
|
||||||
_playerUID = getPlayerUID _target;
|
_playerUID = getPlayerUID _target;
|
||||||
|
Loading…
Reference in New Issue
Block a user