Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- pass = "dogsandcats"
- print("Welcome, Please enter your password")
- input = read("*")
- if input == pass then
- print("Success")
- function COMMANDS()
- print("ENTER COMMAND")
- print("UNLOCK, LOCK, LOGOFF")
- input2 = read()
- string.upper()
- if input2 == "UNLOCK" then
- redstone.setOutput(back,0)
- print("UNLOCKING")
- sleep(1)
- COMMANDS()
- end
- else if input2 = "LOCK" then
- redstone.setOutput(back,1)
- print("LOCK")
- sleep(1)
- COMMANDS()
- end
- else if input2 = "LOGOFF" then
- print("LOGGING OFF")
- sleep(1)
- shell.run("new")
- end
- end
- else
- print("Denied")
- sleep(2)
- shell.run("new")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement