Guest User

Untitled

a guest
Oct 11th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1.  
  2. user = user
  3.  
  4. os.pullEvent = os.pullEventRaw
  5. function printFrameLogin()
  6. term.setCursorPos(1,1)
  7. shell.run("clear")
  8. print("+-----------------------------------------------+")
  9. print("|---00000 000 0000 -| |--|")
  10. print("|---00 00 00 00 -| |--|")
  11. print("|---0000 00 00 0000 -| |--|")
  12. print("|---00 00 00 00-| |--|")
  13. print("|---00000 000 0000 -| |--|")
  14. print("+-----------------------------------------------+")
  15. end
  16.  
  17. term.clear()
  18. term.setCursorPos(1,1)
  19. printFrameLogin()
  20. term.setCursorPos(26,2)
  21. Ehwhatpass = "cadence1"
  22. sleep(1)
  23. write("Username: ")
  24. user = read()
  25. term.setCursorPos(46,2)
  26. write("|--|")
  27. if user == "Ehwhat" then
  28. term.setCursorPos(26,3)
  29. write("Password: ")
  30. p1 = read("*")
  31. term.setCursorPos(46,2)
  32. write("|--|")
  33. if p1 == Ehwhatpass then
  34. shell.run("gui1")
  35. else
  36. term.setCursorPos(26,4)
  37. print("Password Incorrect!")
  38. sleep(2)
  39. os.shutdown()
  40. end
  41. else
  42. term.setCursorPos(26,3)
  43. print("Username Incorrect!")
  44. sleep(2)
  45. os.shutdown()
  46. end
Add Comment
Please, Sign In to add comment