Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- while true do
- term.clear()
- term.setCursorPos(1,1)
- write("Password: ")
- local input = read("*")
- if input == password then
- term.clear()
- term.setCursorPos(1,1)
- print("Password correct!")
- rs.setOutput(side,true)
- sleep(opentime)
- rs.setOutput(side,false)
- elseif input == admin then
- print("Hello Admin")
- sleep(2)
- term.clear()
- term.setCursorPos(1,1)
- shell.run("shell")
- else
- print("Password incorrect!")
- sleep(2)
- end
- end
Add Comment
Please, Sign In to add comment