skare

Code avec confirmation

Jun 17th, 2013
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1.    
  2.  
  3.     write ("PIN : ")
  4.     pass = read()
  5.     if pass == "mdp" then
  6.     print("êtes-vous sur")
  7.     else
  8.     print("ERROR")
  9.     sleep(3)
  10.     os.reboot()
  11.     end
  12.      
  13.     i = read()
  14.     if i =="yes" then
  15.     print("d'accord")
  16.     sleep(1)
  17.     redstone.setOutput("bottom", true)
  18.     print("ouvert")
  19.     sleep(3)
  20.     print("created by skare")
  21.     print("fermeture")
  22.     redstone.setOutput("bottom", false)
  23.     os.reboot()
  24.     else
  25.     print("d'accord")
  26.     sleep(1)
  27.     print("refusé")
  28.     sleep(2)
  29.     print("created by Skare")
  30.     sleep(2)
  31.     os.reboot()
  32.     end
Advertisement
Add Comment
Please, Sign In to add comment