Advertisement
griever88

mdp

Oct 24th, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- pastebin get Fb72VKyP startup
  2.  
  3. os.pullEvent = os.pullEventRaw
  4.  
  5. MDP = ("1234")
  6.  
  7. term.clear()
  8. term.setCursorPos(1,1)
  9.  
  10. print("entrez votre mot de passe : ")
  11. read = read("*")
  12.  
  13. if read == MDP then
  14.     print("Acces Autorise")
  15.  
  16.     redstone.setOutput("left",true)
  17.     redstone.setOutput("right",true)
  18.  
  19.     sleep (5)
  20.  
  21.     redstone.setOutput("left",true)
  22.     redstone.setOutput("right",true)
  23.  
  24.     os.reboot()
  25.  
  26. elseif read == ("debug") then
  27.  
  28.     print("Mode debug")
  29.  
  30. else
  31.     print("Acces refuse")
  32.     sleep(1)
  33.     os.reboot()
  34. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement