У нас вы можете посмотреть бесплатно Password Protected Computer script in CC: Tweaked или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
I made a password protected computer using cc tweaked. startup.lua code: os.pullEvent = os.pullEventRaw print("Whats the password?: ") local answer = read("*") local password = "password.txt" local file = fs.open(password, "r") local fileContents = file.readAll() file.close() if string.find(fileContents, answer, 1, true) then print("correct answer. Cancelling shutdown.") os.sleep(2) term.clear() term.setCursorPos(1, 1) return else print("Wrong dumb dumb, turning off in 2 seconds.") os.sleep(2) os.shutdown() end local running = true while running do local event = os.pullEventRaw () if event == "terminate" then running = false end end setpassword.lua code: print("What was your most recent password?: ") local answer = read("*") local password = "password.txt" local file = fs.open(password, "r") local fileContents = file.readAll() file.close() if string.find(fileContents, answer) then print("correct answer.") else print("Wrong dumb dumb, turning off in 2 seconds.") os.sleep(2) os.shutdown() end print("What would you like your new password to be?: ") local newpassword = read() local file = fs.open(password, "w") file.write(newpassword) file.close() print("Your password is now: ".. newpassword ..".") term.clear() term.setCursorPos(1, 1) cc tweaked is a mod that uses lua to code and its pretty neat you should try it out / discord is the discord for a helpful cc server