Advertisement
luigicrafter

Password door Lock (German)

Dec 18th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1, 1)
  3.  
  4. print("Passwort Sicherheitssystem")
  5. write("Passwort hinschreiben:")
  6. input = read()
  7.  
  8. password = "Dein_Passwort_Hier"
  9.  
  10. if input == password then
  11. print("Passwort ist richtig!")
  12. rs.setOutput("right", true)
  13. sleep(3)
  14. rs.setOutput("right", false)
  15. os.reboot()
  16. else
  17. print("Passwort ist falsch! HAHA!!!")
  18. sleep(3)
  19. os.reboot()
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement