Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- term.clear()
- term.setCursorPos(1,1)
- user = ""
- pass = ""
- textutils.slowPrint ("Welcome to local pc: #0")
- textutils.slowPrint ("Please log in.")
- textutils.slowWrite ("Username: ")
- user = read()
- textutils.slowWrite ("Password: ")
- pass = read("*")
- textutils.slowWrite ("Logging in")
- sleep(1)
- write "." sleep(.8)
- write "."
- sleep(.6)
- write "."
- sleep(.4)
- write "."
- sleep(.2)
- write "."
- term.clear()
- term.setCursorPos(1,1)
- if user == "Caleb" or "caleb" or "Cowman" or "cowman" and pass == "socks321" then
- textutils.slowWrite("Welcome back Caleb!\n")
- shell.run("time")
- shell.setDir("/users/caleb")
- --remove "end" until actual end of if/elseif commands
- elseif user == "Surf" or "surf" or "surfcash" or "Surfcash" and pass == "password" then --needs to be elseif
- textutils.slowWrite("Welcome back Colin!\n")
- shell.run("time")
- shell.setDir("/users/colin")
- fs.isReadOnly("/")
- fs.isReadOnly("/rom")
- fs.isReadOnly("/users/caleb")
- --remove "end" until actual end of if/elseif commands
- elseif user == ("Guest" or "guest") and pass == ("guest" or "password") then
- textutils.slowWrite("Welcome Guest.User!\n")
- shell.run("time")
- shell.setDir("/users/guest")
- fs.isReadOnly("/")
- fs.isReadOnly("/rom")
- fs.isReadOnly("/users/caleb")
- fs.isReadOnly("/users/colin")
- --remove "end" until actual end of if/elseif commands
- else textutils.slowWrite("Incorrect User or Password.")
- sleep(3)
- shell.run("startup")
- end --end goes here.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement