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

Untitled

By: a guest on May 9th, 2012  |  syntax: None  |  size: 0.43 KB  |  hits: 13  |  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. oldpullEvent = os.pullEvent
  2. os.pullEvent = os.pullEventRaw
  3.  
  4. function pass()
  5.        
  6.         inp = read()
  7.         if inp == "darkside" then
  8.                 redstone.output("right", true)
  9.                 print("Acces granted!")
  10.                 print("Password correct!")
  11.                 sleep(2)
  12.                 redstone.output("right", false)
  13.                 pass()
  14.         elseif inp == "awsomedebug" then
  15.                 exit()
  16.         else
  17.                 print("Acces denied!")
  18.                 print("Wrong password!")
  19.                 sleep(2)
  20.                 pass()
  21.         end
  22.        
  23. end
  24.  
  25. os.pullEvent = oldpullEvent