Don't like ads? PRO users don't see any ads ;-)
Guest

SafeDoor

By: NL_Miquel on Aug 20th, 2012  |  syntax: None  |  size: 0.73 KB  |  hits: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.  print("Wachtwoord beveiliging")
  2. code = ("Capmiq")
  3. debug = ("candy_yams")
  4. tries = 3
  5. write ("Wachtwoord: ")
  6. for triescnt = 1,tries,1 do
  7.  password = read ()
  8.  if password == debug then
  9.   print ("Veiligheids mode geactiveerd")
  10.  break
  11.   end
  12.   if password == (code) then
  13.    print ("Welkom")
  14.    redstone.setOutput("back", true)
  15.    sleep(5)
  16.    redstone.setOutput("back", false)
  17.    redstone.setOutput("bottom", true)
  18.    os.shutdown()
  19.   else
  20.    print ("Toegang geweigerd, pogingen over: ",tries-triescnt)
  21.    print ("Hint: Geen hint, jammer hé!")
  22.    write ("Password: ")
  23.   end
  24.  if triescnt == tries then
  25.   print ("Ga weg!")
  26. sleep(1)
  27. print ("ERROR!!!")
  28. print ("Beveiliging gaat uit...")
  29. sleep(1)
  30. os.shutdown()
  31. else
  32.  end
  33.  end