Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- redstone.setOutput ("left", false)
- attempts = 0
- correctpassword = "qwe"
- print("Attempts: "..attempts.."/3")
- write("ENTER AUTHORISATION CODE:")
- password = read("*")
- if password == (correctpassword) then
- write("CODE VALID")
- redstone.setOutput("left", true)
- sleep(5)
- os.reboot()
- elseif password == "onedelta" then
- write("Initiating Administrative Mode...")
- write("") -- code break
- else
- attempts = attempts + 1
- print("Attempts: "..attempts.."/3")
- write("CODE INVALID! REBOOTING...")
- sleep(5)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement