Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- side = "left"
- x=1
- t=30
- while true do
- rs.setOutput(side,false)
- if x == 4 then
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.red)
- print("Access Attempts Exceeded")
- while t > 0 do
- term.setCursorPos(1,2)
- print("Computer Locked for " .. t .. " Seconds ")
- sleep(1)
- t = t - 1
- end
- t = 30
- x=1
- end
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.yellow)
- print("Base Access")
- term.setCursorPos(1,3)
- print("Enter Password:")
- local input = read("*")
- -- Password
- if input == "access" then
- term.setTextColor(colors.green)
- print("Password Accepted")
- x=1
- rs.setOutput(side,true)
- sleep(3)
- rs.setOutput(side,false)
- -- Program Override
- elseif input == "admin" then
- term.setTextColor(colors.blue)
- print("Welcome Admin!")
- print("Program Terminated")
- break;
- else
- term.setTextColor(colors.red)
- print("Password Incorrect")
- x=x+1
- sleep(1)
- end
- end
Add Comment
Please, Sign In to add comment