Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --stop ^t
- os.pullEvent = os.pullEventRaw
- -- Title And ">" TEXT ONLY --
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.yellow)
- print("CraftOS Login")
- term.write("> ")
- term.setCursorPos(3,2)
- term.setTextColor(colors.white)
- -- read after ">"
- local logedin = io.read()
- --what to do when loggedin is loggedin
- if logedin == "root" then
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.yellow)
- print("CraftOS 1.8")
- term.setTextColor(colors.white)
- elseif logedin == "user" then
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.red)
- print("System :001:\nntuser.name(\"user\") = acsses.cmd(0)")
- sleep(50)
- os.reboot()
- else
- shell.run("startup")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement