Advertisement
Guest User

new

a guest
Sep 1st, 2014
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.65 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2.  
  3. pass = "dogsandcats"
  4.  
  5. print("Welcome, Please enter your password")
  6.  
  7. input = read("*")
  8. if input == pass then
  9.  print("Success")
  10.  
  11. function COMMANDS()
  12.  print("ENTER COMMAND")
  13.  print("UNLOCK, LOCK, LOGOFF")
  14.  input2 = read()
  15.  string.upper()
  16.  
  17.  
  18.  if input2 == "UNLOCK" then
  19.   redstone.setOutput(back,0)
  20.   print("UNLOCKING")
  21.   sleep(1)
  22.   COMMANDS()
  23.   end
  24.  
  25.  else if input2 = "LOCK" then
  26.  redstone.setOutput(back,1)
  27.  print("LOCK")
  28.  sleep(1)
  29.  COMMANDS()
  30.  end
  31.  
  32.  else if input2 = "LOGOFF" then
  33.  print("LOGGING OFF")
  34.  sleep(1)
  35.  shell.run("new")
  36.  end
  37.  
  38. end
  39.  
  40. else
  41. print("Denied")
  42. sleep(2)
  43. shell.run("new")
  44. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement