Advertisement
Messorix

Untitled

Oct 6th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. print(" Login ")
  2. print("=========")
  3. sleep(1)
  4. print(" ")
  5. sleep(1)
  6. print("Username: ")
  7. sleep(1)
  8. login = read()
  9. sleep(1)
  10. rednet.open("right")
  11. rednet.send(3,login)
  12. sleep(2)
  13. x,y,z = rednet.receive()
  14. if y == "wpw" then
  15. print("Wrong Username")
  16. sleep(1)
  17. print("Restart")
  18. sleep(2)
  19. shell.run(clear)
  20. shell.run(login)
  21. else
  22. sleep(1)
  23. print("Password: ")
  24. sleep(1)
  25. pw = read()
  26. if y == pw then
  27. print("Access Granted!")
  28. sleep(1)
  29. print("Main menue following...")
  30. else
  31. print("Wrong password")
  32. sleep(1)
  33. print("Restart")
  34. sleep(2)
  35. shell.run(clear)
  36. shell.run(login)
  37. end
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement