zeshan

Untitled

Dec 22nd, 2013
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. local pullEvent = os.pullEvent
  2. os.pullEvent = os.pullEventRaw
  3. local side = "left"
  4. local password = "08191988"
  5. local opentime = 5
  6. while true do
  7. term.clear()
  8. term.setCursorPos(1,1)
  9. write("Password: ")
  10. local input = read("*")
  11. if input == password then
  12. term.clear()
  13. term.setCursorPos(1,1)
  14. print("Password correct!")
  15. rs.setOutput(side,true)
  16. sleep(opentime)
  17. rs.setOutput(side,false)
  18. else
  19. print("Password incorrect!")
  20. sleep(2)
  21. end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment