cobra_tomtrein

Untitled

Jul 26th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2.  
  3. pass1 = "edit"
  4. pass2 = "lock"
  5. term.clear()
  6. term.setCursorPos(1,1)
  7. print("password")
  8. pass = read("*")
  9.  
  10. if pass == pass1 then
  11. shell.run("rom/programs/delete", "edit")
  12. shell.run("rom/programs/delete", "delete")
  13. elseif pass == pass2 then
  14. file = fs.open("delete", "w")
  15. file.writeLine("print()")
  16. file.close()
  17. file = fs.open("edit", "w")
  18. file.writeLine("print()")
  19. file.close()
  20. end
Advertisement
Add Comment
Please, Sign In to add comment