From 217636511a442cc6ffe953435e7e6310907f2fc7 Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Thu, 6 Mar 2014 16:16:08 -0600 Subject: [PATCH] fix #1128 should work but needs tested. --- SQF/dayz_code/actions/trade_items.sqf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SQF/dayz_code/actions/trade_items.sqf b/SQF/dayz_code/actions/trade_items.sqf index 1ed9ae43d..f3228673a 100644 --- a/SQF/dayz_code/actions/trade_items.sqf +++ b/SQF/dayz_code/actions/trade_items.sqf @@ -27,6 +27,12 @@ r_autoTrade = true; while {r_autoTrade} do { _removed = 0; + + // check if current magazine count is greater than 20 + + if ((count (magazines player) > 20) exitWith { cutText [(localize "STR_DAYZ_CODE_2"), "PLAIN DOWN"]; r_autoTrade = false}; + + cutText [(localize "str_epoch_player_105"), "PLAIN DOWN"]; [1,1] call dayz_HungerThirst;