Aleksei-bird 7c9c708c92 Первый фикс
Пачки некоторых позиций увеличены
2024-03-01 20:54:33 +03:00

23 lines
757 B
Lua

local Interface = require('__stdlib__/stdlib/scripts/interface')
require('__stdlib__/stdlib/utils/string')
local function commands(event)
local player = game.players[event.player_index]
if player.admin then
local params = event.parameter and event.parameter:split(' ') or {}
if params[1] == 'reset' then
if params[2] == 'mod' then
Interface.reset_mod(true)
elseif params[2] == 'cell_queue' then
Interface.reset_queue('cell_queue')
elseif params[2] == 'nano_queue' then
Interface.reset_queue('nano_queue')
end
elseif params[1] == 'count' then
Interface.count_queue(params[2])
end
end
end
return commands