resaloli

pass

Jul 17th, 2013
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. while true do
  3.  term.clear()
  4.  term.setCursorPos(1,1)
  5.  write("Password: ")
  6.  local input = read("*")
  7.  if input == password then
  8.   term.clear()
  9.   term.setCursorPos(1,1)
  10.   print("Password correct!")
  11.   rs.setOutput(side,true)
  12.   sleep(opentime)
  13.   rs.setOutput(side,false)
  14.  elseif input == admin then
  15.     print("Hello Admin")
  16.     sleep(2)
  17.     term.clear()
  18.     term.setCursorPos(1,1)
  19.     shell.run("shell")
  20.  else
  21.   print("Password incorrect!")
  22.   sleep(2)
  23.  end
  24. end
Add Comment
Please, Sign In to add comment