function main()
repeat wait(100) until isSampAvailable()
sampRegisterChatCommand("primer", func) -- Команда /primer [время в мс]
wait(-1)
end
function func(time)
if time:find("%d+") then
lua_thread.create(function()
local time = os.clock() + tonumber(time:match("(%d+)"))
while time > os.clock() do
wait(0)
sampSendChat("/cmd")
end
end)
end
end