Guest User

Untitled

a guest
Aug 5th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.78 KB | None | 0 0
  1. password = "Multi"
  2. craftos = "CraftMulti"
  3. output = "right"
  4. trap = "left"
  5. opentime = 5
  6. traptime = 5
  7. os.pullEvent = os.pullEventRaw
  8.  
  9. print("You are trying to access multis base!")
  10. print("Be carefull! Double check password!")
  11. sleep(2)
  12. shell.run("clear")
  13. write("Password: ")
  14. input = read("x")
  15. if password == input then
  16.  print("Access Granted for 5seconds")
  17.  rs.setOutput(output, true)
  18.  sleep(opentime)
  19.  rs.setOutput(output, false)
  20.  print("Shutting down...")
  21.  sleep(1)
  22.  os.shutdown()
  23. end
  24. if craftos == input then
  25.  print("Starting CraftOS 1.3")
  26.  print("Leaving PieLock")
  27.  shell.run("shell")
  28. end
  29. if not(user == password) or (user == craftos) then
  30.  print("Access denied! You may die now!")
  31.  rs.setOutput(trap, true)
  32.  sleep(traptime)
  33.  rs.setOutput(trap, false)
  34.  print("Shutting down...")
  35.  os.shutdown()
  36. end
Add Comment
Please, Sign In to add comment