|
|
|
@ -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 |
|
|
|
|