Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Username = "gen"
- Password = "5337"
- DebugPsw = "134"
- DebugText = "Debug Mode active"
- Side = "bottom"
- Seconds = 5
- MainText = "Welcome to Prederian"
- AccessYes = "Access Granted, Enjoy your stay"
- AccessNo = "Access Denied, Alarms now Sounding"
- term.clear()
- term.setCursorPos(2,2)
- print(MainText)
- term.setCursorPos(4,4)
- write("Username: ")
- user = read()
- write("Password:")
- psw = read("*")
- program = true
- while program do
- if Username == user and Password == psw then
- term.setCursorPos(2,2)
- print(AccessYes)
- rs.setOutput(Side,true)
- os.sleep(Seconds)
- rs.setOutput(Side,false)
- os.reboot()
- elseif Username == user and DebugPsw == psw then
- term.setCursorPos(2,2)
- print(DebugText)
- os.sleep(1,5)
- term.clear()
- term.setCursorPos(1,1)
- program = false
- else
- term.setCursorPos(2,6)
- print(AccessNo)
- os.sleep(1,5)
- os.reboot()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement