Don't like ads? PRO users don't see any ads ;-)
Guest

HS 1

By: 666WTF666 on Jun 2nd, 2012  |  syntax: None  |  size: 1.20 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --Define Program Information
  2.  
  3. --Text Symbols
  4. usersymbol = "X"
  5. passsymbol = "*"
  6. --Passwords
  7. pass1 = "1928"
  8. pass2 = "lamus"
  9. pass3 = "znasz"
  10. pass4 = "nieznasz"
  11. -- Usernames
  12. user1 = "skrytka"
  13. user2 = "Misiek"
  14. user3 = "WTF"
  15. user4 = "Aqos"
  16. --TERMINATE
  17. TerminalMode = 0 -- Allows you to edit what terminate does
  18.  
  19.  
  20. function os.pullEvent()
  21. local event, p1, p2, p3, p4, p5 = os.pullEventRaw()
  22. if event == "terminate" then
  23. if TerminalMode == 0 then
  24.  
  25.  
  26. end
  27.  
  28.  
  29. if TerminalMode == 1 then
  30. os.reboot()
  31. end
  32. if TerminalMode == 2 then
  33. error( "Terminated" )
  34. end
  35. end
  36. return event, p1, p2, p3, p4, p5
  37. end
  38.  
  39. --Program
  40. shell.run("clear")
  41. redstone.setOutput("bottom", false)
  42. sleep(4)
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50. shell.run("clear")
  51. textutils.slowPrint"Prosze podaj log-in"
  52. xuser = read(usersymbol)
  53. textutils.slowPrint"Prosze podaj haslo"
  54. xpassword = read(passsymbol)
  55. if xpassword == pass1 and xuser == user1 then
  56. textutils.slowPrint"Zalogowano"
  57. redstone.setOutput("bottom", true)
  58. sleep(10)
  59. redstone.setOutput("bottom", false)
  60. sleep(2)
  61. shell.run("clear")
  62. shell.run("startup")
  63.  
  64.  
  65. else
  66. textutils.slowPrint"Zly login lub haslo"
  67. sleep(2)
  68. shell.run("startup")
  69.  
  70.  
  71.  
  72.  
  73.  
  74. shell.run("clear")
  75. end