From 080024078bfe97ea1fa9b65d2ca030c4c6967c31 Mon Sep 17 00:00:00 2001 From: rubin Date: Tue, 7 Feb 2023 22:03:53 +0300 Subject: [PATCH] fixed check ENTER textdraw - warelock --- mafia-tools.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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