Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- term.clear()
- term.setCursorPos(8,5)
- print("Nat Power Grid Systems Login")
- term.setCursorPos(8,6)
- print("Username:")
- term.setCursorPos(10,6)
- input = read()
- if input == "admin" then
- term.setCursorPos(8,7)
- print("Password:")
- term.setCursorPos(10,7)
- input = read("*")
- if input == "admin" then
- term.clear()
- term.setCursorPos(8,5)
- print("Please Wait,")
- term.setCursorPos(8,6)
- print("Logging in as ADMIN...")
- sleep(5)
- term.clear()
- term.setCursorPos(8,6)
- print("Success")
- sleep(2)
- term.clear()
- term.setCursorPos(1,1)
- print("Nat Power Grid Systems v1.0")
- term.setCursorPos(11,1)
- print("Logged in as ADMIN")
- term.setCursorPos(8,5)
- print("Enter a Command")
- input = read()
- if input == "Unlock" then
- while true do
- term.clear()
- term.setCursorPos(1,1)
- print("Nat Power Grid Systems v1.0")
- term.setCursorPos(11,1)
- print("Logged in as ADMIN")
- term.setCursorPos(8,5)
- print("Unlock Menu, Enter Entrance Number to Unlock")
- input = read()
- if input == "1" then
- redstone.setOutput("bottom", true)
- sleep(2)
- redstone.setOutput("bottom", false)
- end
- else if input == "exit" then
- break
- end
- else if input == "logout" then
- term.clear()
- print("Please Wait,")
- term.setCursorPos(8,6)
- print("Logging out...")
- sleep(5)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement