Advertisement
Guest User

startup

a guest
Jun 27th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.69 KB | None | 0 0
  1. while true do
  2. redstone.setOutput("left","lime",true)
  3. os.pullEvent =os.pullEventRaw
  4. term.clear()
  5. term.setCursorPos(1,1)
  6. term.setTextColor(colors.orange)
  7. print("Login:")
  8. print("")
  9. term.setTextColor(colors.lightBlue)
  10. print("Username:")
  11. term.setTextColor(colors.white)
  12. input1 = read()
  13. term.setTextColor(colors.lightBlue)
  14. print("Password:")
  15. term.setTextColor(colors.white)
  16. input2 = read("*")
  17. if input1 == "zsmate13" and input2 == "mate9082" then
  18. redstone.setOutput("left","lime",false)
  19. sleep(5)
  20. redstone.setOutput("left","lime",true)
  21. sleep(1)
  22. os.reboot()
  23. else
  24. term.setTextColor(colors.red)
  25. print("Incorrect username or password please try again later!")
  26. sleep(3)
  27. os.reboot()
  28. end
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement