Advertisement
atlasim

user sys

Apr 1st, 2020
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --stop ^t
  2.  
  3. os.pullEvent = os.pullEventRaw
  4.  
  5. -- Title And ">" TEXT ONLY --
  6.  
  7. term.clear()
  8. term.setCursorPos(1,1)
  9. term.setTextColor(colors.yellow)
  10. print("CraftOS Login")
  11. term.write("> ")
  12. term.setCursorPos(3,2)
  13. term.setTextColor(colors.white)
  14.  
  15. -- read after ">"
  16.  
  17. local logedin = io.read()
  18.  
  19. --what to do when loggedin is loggedin
  20.  
  21. if logedin == "root" then
  22.     term.clear()
  23.     term.setCursorPos(1,1)
  24.     term.setTextColor(colors.yellow)
  25.     print("CraftOS 1.8")
  26.     term.setTextColor(colors.white)
  27. elseif logedin == "user" then
  28.     term.clear()
  29.     term.setCursorPos(1,1)
  30.     term.setTextColor(colors.red)
  31.     print("System :001:\nntuser.name(\"user\") = acsses.cmd(0)")
  32.     sleep(50)
  33.     os.reboot()
  34.     else
  35.     shell.run("startup")
  36. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement