Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- localoldPull = os.pullEvent
- os.pullEvent = os.pullEventRaw
- local p = {"Tornado", "Jackthecat"}
- local u = {"Luke" , "Admin"}
- input = "Luke"
- while true do
- term.clear()
- term.setCursorPos(1,1)
- write("OS:Vinex Computer Protection V1.7 Beta")
- term.setCursorPos(11,4)
- write("What is your user name?")
- term.setCursorPos(13,5)
- write("|Luke| |Admin|")
- term.setCursorPos(15,7)
- write("Username: ")
- input = read()
- if input == u[1] then
- term.setCursorPos(15,8)
- write("Password: ")
- input = read("*")
- if input == p[1] then
- term.clear()
- term.setCursorPos(13,7)
- write("Loading Vinex Please Wait")
- term.setCursorPos(14,9)
- write("[")
- term.setCursorPos(36,9)
- write("]")
- x = 15
- repeat
- term.setCursorPos(x,9)
- write("-")
- x = x + 1
- sleep(.2)
- until x == 36
- repeat
- term.setCursorPos(17,9)
- write("Loading Complete!")
- x = x + 1
- until x == 37
- sleep(1.2)
- term.clear()
- term.setCursorPos(1,1)
- write("Welcome, Luke!")
- sleep(2)
- shell.run("Vinex/GUI")
- break
- end
- end
- if input == u[2] then
- term.setCursorPos(15,8)
- write("Password: ")
- input = read("*")
- if input == p[2] then
- term.clear()
- term.setCursorPos(12,7)
- write("Loading Vinex Admin Overide")
- x = 15
- term.setCursorPos(14,9)
- write("[")
- term.setCursorPos(36,9)
- write("]")
- repeat
- term.setCursorPos(x,9)
- write("-")
- x = x + 1
- sleep(.2)
- until x == 36
- repeat
- term.setCursorPos(17,9)
- write("Loading Complete!")
- x = x + 1
- until x == 37
- sleep(1.2)
- term.clear()
- term.setCursorPos(1,1)
- print("Welcome,Admin!")
- break
- end
- end
- if input ~= p[1] then
- term.clear()
- term.setCursorPos(10,9)
- write("Hint:Remember CC is case sensative!")
- sleep(3)
- os.reboot(true)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment