xxangel17xx

H.I.S.S

Dec 4th, 2012
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.90 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. local side = "back"
  3. local password1 = "smocovich1"
  4. local passwordadmin = "josmocovich1994"
  5. term.clear()
  6. sleep(1)
  7. print("Loading...")
  8. sleep(2)
  9. print("H.I.S.S Loaded")
  10. print("Welcome to Home Inteligent Securty System.")
  11. print("To continue please enter your H.I.S.S Access code.")
  12. write("Code: ")
  13. local input = read("*")
  14. if input == password1 then
  15.  term.clear()
  16.  term.setCursorPos(1,1)
  17.  print("Password correct!")
  18.  print("Welcome To H.I.S.S VAULT")
  19.  rs.setOutput(side,true)
  20.  sleep(6)
  21.  rs.setOutput(side,false)
  22.  os.reboot()
  23. end
  24. if input == passwordadmin then
  25.  term.clear()
  26.  term.setCursorPos(1,1)
  27.  print("Password correct!")
  28.  print("Computer unlocking...")
  29.  print("Please type 'reboot' or 'shutdown' before leaving")
  30.  os.pullEvent(terminate)
  31.  
  32. else
  33.  term.clear()
  34.  term.setCursorPos(1,1)
  35.  print("Password incorrect!")
  36.  sleep(2)
  37.  os.reboot()
  38. end
Advertisement
Add Comment
Please, Sign In to add comment