Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Admin name & password
- admin = "admin"
- adminpass = "admin"
- --User name & password
- user = "user"
- userpass = "user"
- --The code (Don't edit unless you know what you
- --are doing)
- shell.run("clear")
- print "--LOGIN TO ShadOS--"
- print "Avalible Users:"
- print (admin)
- print (user)
- print "Guest"
- print "User:"
- status, input = pcall (read)
- if input == admin then
- print "Password:"
- status, password = pcall (read,'*')
- if password == adminpass then
- print "Access Granted!"
- sleep(2)
- shell.run("cd","/ShadOS/Admin")
- shell.run("clear")
- shell.run("shell")
- else
- print "Access Denied!"
- sleep(0.9)
- os.shutdown()
- end
- elseif input == user then
- print "Password:"
- status, password = pcall (read,'*')
- if password == userpass then
- print "Access Granted!"
- sleep(2)
- shell.run("cd","/ShadOS/User")
- shell.run("clear")
- shell.run("shell")
- else
- print "Access Denied!"
- sleep(0.9)
- os.shutdown()
- end
- else
- print "Logging in as guest..."
- sleep(2)
- shell.run("cd","/ShadOS/Guest")
- shell.run("clear")
- shell.run("shell")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement