added message random second

update
rubin 2 years ago
parent 26beb809a4
commit c5917c1f5a
  1. 4
      mafia-tools.lua

@ -33,6 +33,10 @@ end
timer_2min = {}
timer_2min.onServerMessage = function(color, message)
if message:find("Война за бизнес .+ продлена на 2 минуты") then
local now = os.time() - config.data.time_2min
if now < 300 and (os.time() - config.data.time_2min) > 120 then
addChatMessage("2 мин длилось на "..((os.time() - config.data.time_2min) - 120).." секунд больше")
end
config.data.time_2min = os.time()
config.save(config.data)
end

Loading…
Cancel
Save