mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-06-10 20:03:21 +03:00
small change
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
private ["_dir","_classname","_box","_location","_item","_config","_create_raw","_create","_qty","_type","_hasCrate","_hasTool"];
|
||||
|
||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_75") , "PLAIN DOWN"]; };
|
||||
TradeInprogress = true;
|
||||
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_75") , "PLAIN DOWN"]; };
|
||||
DZE_ActionInProgress = true;
|
||||
|
||||
_hasTool = "ItemCrowbar" in items player;
|
||||
if(!_hasTool) exitWith {
|
||||
cutText [(localize "str_epoch_player_76"), "PLAIN DOWN"];
|
||||
TradeInprogress = false;
|
||||
DZE_ActionInProgress = false;
|
||||
};
|
||||
|
||||
_item = _this;
|
||||
_hasCrate = _item in magazines player;
|
||||
if (!_hasCrate) exitWith {
|
||||
cutText [(localize "str_epoch_player_77"), "PLAIN DOWN"];
|
||||
TradeInprogress = false;
|
||||
DZE_ActionInProgress = false;
|
||||
};
|
||||
|
||||
_config = configFile >> "CfgMagazines" >> _item;
|
||||
@@ -60,4 +60,4 @@ player action ["Gear", _box];
|
||||
|
||||
cutText [(localize "str_epoch_player_78"), "PLAIN DOWN"];
|
||||
|
||||
TradeInprogress = false;
|
||||
DZE_ActionInProgress = false;
|
||||
|
||||
Reference in New Issue
Block a user