zequan

Untitled

Jun 18th, 2014
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. -- IF YOU USE THIS FOR MY TUTORIAL SAVE THE FILE AS "startup" WITHOUT EXTENSION
  2.  
  3. pass = "sgc" -- CHANGE 'lol' IN TO WHAT EVER YOU LIKE TO CHANGE THE PASSWORD
  4.  
  5. -- DON'T TOUCH THE CODE IF YOU DON'T UNDERSTAND IT!
  6. -- IF YOU USE MY CODE AND RELEASE IT ATLREAST GIVE ME SOME CREDIT ^^
  7.  
  8. term.clear()
  9. term.setCursorPos(11,3)
  10. print "[SGC Door Terminal]"
  11. term.setCursorPos(6,4)
  12. print "[Enter security password]"
  13.  
  14. write "\nPassword: "
  15. input = read()
  16. if pass == input then
  17. print "Password Correct"
  18. sleep(1)
  19. term.clear()
  20. shell.run( "door" )
  21.  
  22. else
  23. print "Password Incorrect"
  24. print "Shutting down the system"
  25. sleep(1)
  26.  
  27. os.shutdown()
  28. end
Advertisement
Add Comment
Please, Sign In to add comment