Advertisement
thekumpelHD

PassWD

Jun 4th, 2014
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. while true do
  2. i=1
  3. while i==1 == true do
  4. term.clear()
  5. term.setCursorPos(22,8)
  6. print "PASSWORT EINGEBEN"
  7. i=2
  8. term.setCursorPos(22,11)
  9. input = read("*")
  10. if input == "12345" then
  11. redstone.setOutput("right" , true)
  12. os.sleep(2)
  13. redstone.setOutput("right" , false)
  14. term.clear()
  15. term.setCursorPos(1,1)
  16. else
  17. term.clear()
  18. term.setCursorPos(22,8)
  19. print "FALSCHES PASSWORT,DU ******"
  20. os.sleep(1,3)
  21. term.clear()
  22. i=1
  23. end
  24. end
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement