Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Key card access by PaymentOption and sambosch --
- local sPasswordPath = "disk/.lockInformation"
- local sPassword = "" -- This is loaded from the disk on runtime
- local sReal_Password = "sambosch" -- This is the actual password for validation comparison.
- local file = nil
- -- END VARS --
- term.clear(); term.setCursorPos(1, 1)
- while true do
- event, side = os.pullEventRaw()
- if event == "disk" then
- if fs.exists(sPasswordPath) then
- file = fs.open(sPasswordPath, "r")
- if file.readAll() == sReal_Password then term.clear(); term.setCursorPos(1, 1); print(os.version()); break
- else print("Access Denied."); shell.run("eject", side) end
- else print("Password not found on disk."); shell.run("eject", side) end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement