Advertisement
UltraNexus

Untitled

May 14th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. failed = 0
  2. while true do
  3. shell.run("clear")
  4. if failed == 3 then
  5. print("Du hast das Password 3 Mal falsch eingegeben!")
  6. print("You havent typed the password correctly three times!")
  7. sleep(60)
  8. failed = 0
  9. return true
  10. end
  11. write("Password: ")
  12. m = read()
  13. if m == 8559 then
  14. print("Access granted!")
  15. rs.setOutput("left", true)
  16. sleep(5)
  17. rs.setOutput("left", false)
  18. failed = 0
  19. else
  20. print("Access denied!")
  21. sleep(2)
  22. failed++
  23. end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement