Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- local side = "back"
- local password1 = "smocovich1"
- local passwordadmin = "josmocovich1994"
- term.clear()
- sleep(1)
- print("Loading...")
- sleep(2)
- print("H.I.S.S Loaded")
- print("Welcome to Home Inteligent Securty System.")
- print("To continue please enter your H.I.S.S Access code.")
- write("Code: ")
- local input = read("*")
- if input == password1 then
- term.clear()
- term.setCursorPos(1,1)
- print("Password correct!")
- print("Welcome To H.I.S.S VAULT")
- rs.setOutput(side,true)
- sleep(6)
- rs.setOutput(side,false)
- os.reboot()
- end
- if input == passwordadmin then
- term.clear()
- term.setCursorPos(1,1)
- print("Password correct!")
- print("Computer unlocking...")
- print("Please type 'reboot' or 'shutdown' before leaving")
- os.pullEvent(terminate)
- else
- term.clear()
- term.setCursorPos(1,1)
- print("Password incorrect!")
- sleep(2)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment