Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- IF YOU USE THIS FOR MY TUTORIAL SAVE THE FILE AS "startup" WITHOUT EXTENSION
- pass = "sgc" -- CHANGE 'lol' IN TO WHAT EVER YOU LIKE TO CHANGE THE PASSWORD
- -- DON'T TOUCH THE CODE IF YOU DON'T UNDERSTAND IT!
- -- IF YOU USE MY CODE AND RELEASE IT ATLREAST GIVE ME SOME CREDIT ^^
- term.clear()
- term.setCursorPos(11,3)
- print "[SGC Door Terminal]"
- term.setCursorPos(6,4)
- print "[Enter security password]"
- write "\nPassword: "
- input = read()
- if pass == input then
- print "Password Correct"
- sleep(1)
- term.clear()
- shell.run( "door" )
- else
- print "Password Incorrect"
- print "Shutting down the system"
- sleep(1)
- os.shutdown()
- end
Advertisement
Add Comment
Please, Sign In to add comment