|
|
|
@ -419,6 +419,23 @@ menu.update = function() |
|
|
|
|
menu.show = { true, "main" } |
|
|
|
|
end |
|
|
|
|
}, |
|
|
|
|
{ -->> Открывать склад на |
|
|
|
|
title = "{"..config.data.font.color1.."}"..">{ffffff} Держать склад открытым\t"..config.data.get_guns.warelock_time.." сек", |
|
|
|
|
click = function(button, list, input , outs) |
|
|
|
|
if button ~= 1 then return end |
|
|
|
|
menu.show = { true, "edit", function(button, list, input, outs) |
|
|
|
|
if button == 1 then |
|
|
|
|
if #input > 0 and input:find("(%d+)") then |
|
|
|
|
if tonumber(input:match("(%d+)")) > 0 then |
|
|
|
|
config.data.get_guns.warelock_time = tonumber(input:match("(%d+)")) |
|
|
|
|
config.save(config.data) |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
menu.show = { true, "main" } |
|
|
|
|
end, config.data.get_guns.warelock_time, "Введите сколько секунд склад держать открытым"} |
|
|
|
|
end |
|
|
|
|
}, |
|
|
|
|
{ -->> Брать оружие сразу как откроют склад |
|
|
|
|
title = "{"..config.data.font.color1.."}"..">{ffffff} Брать оружие сразу как откроют склад\t"..(config.data.get_guns.auto_get_guns and "вкл" or "выкл"), |
|
|
|
|
click = function(button, list, input , outs) |
|
|
|
@ -1242,7 +1259,7 @@ config.default = { |
|
|
|
|
"sklad", |
|
|
|
|
"склад" |
|
|
|
|
}, |
|
|
|
|
warelock_time = 10 |
|
|
|
|
warelock_time = 5 |
|
|
|
|
}, |
|
|
|
|
stats = { |
|
|
|
|
frac = "", |
|
|
|
@ -1270,6 +1287,13 @@ config.init = function() |
|
|
|
|
if config.data[k] == nil then |
|
|
|
|
config.data[k] = v |
|
|
|
|
end |
|
|
|
|
if type(v) == "table" then |
|
|
|
|
for kk,vv in pairs(v) do |
|
|
|
|
if config.data[k][kk] == nil then |
|
|
|
|
config.data[k][kk] = vv |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
config.save(config.data) |
|
|
|
|
end |
|
|
|
|