Advertisement
Brodur

Untitled

Jul 27th, 2015
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. passkey = "PASSWORD"
  2. while true do
  3. if disk.isPresent("SIDE") then -- Put side to the side the disk drive is on
  4. h = fs.open("disk/passcode", "r")
  5. if h.readAll() == passkey then
  6. print("Accepted")
  7. -- Insert anything here for the code, rs.setOutput() whatever..
  8. else
  9. print("Denied")
  10. disk.eject("side") -- Replace side with diskdrive side
  11. end
  12. end
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement