Guest User

Untitled

a guest
Apr 9th, 2018
79
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. password = "08"
  4. inverted = false
  5. side = "bottom"
  6. opentime = 5
  7.  
  8.  
  9. rs.setOutput(side,inverted)
  10. write("Passwort: ")
  11. input = read("*")
  12. if input == password then
  13. if inverted == true then
  14. print("Richtig!")
  15. rs.setOutput(side, false)
  16. sleep(opentime)
  17. os.reboot()
  18. else
  19. print("Richtig!")
  20. rs.setOutput(side, true)
  21. sleep(opentime)
  22. os.reboot()
  23. end
  24. elseif input == "Gute Wahl!" then
  25. print("Exiting program..")
  26. sleep(2)
  27. else
  28. print("Falsch!")
  29. rs.setOutput("top",true)
  30. sleep(5)
  31. rs.setOutput("top",false)
  32. os.reboot()
  33. end
RAW Paste Data