diff --git a/mafia-tools.lua b/mafia-tools.lua index 9d4bc76..2d9da81 100644 --- a/mafia-tools.lua +++ b/mafia-tools.lua @@ -680,7 +680,7 @@ get_guns.onServerMessage = function(color, message) if message:find("^ .+%[%d+%]: (.+)") then get_guns.messages[#get_guns.messages+1] = message:match("^ .+%[%d+%]: (.+)") end - if config.data.get_guns.auto_get_guns and message:find("^ .+ открыл%(а%) склад с оружием$") and not message:find(getLocalPlayerNickname()) then + if config.data.get_guns.auto_get_guns and get_guns.enter_textdraw and message:find("^ .+ открыл%(а%) склад с оружием$") and not message:find(getLocalPlayerNickname()) then get_guns.start_get() end if message == " Броня уже 100%" and get_guns.getgun then