Advertisement
KingofGamesYami

Security sysem - hydro (not mine)

Feb 12th, 2013
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.92 KB | None | 0 0
  1. code = "minecraft"
  2. debug = "debug"
  3. output = "left"
  4. tries = 5
  5. pulsout = 5
  6. hax = true
  7. haxout = "right"
  8.  
  9. print
  10. write
  11. for triescnt = 1,tries,1 do
  12. password = read()
  13. if password == debug then
  14.   print "Debug Mode Activated"
  15.   break
  16. end
  17.   if password == (code) then
  18.    print "Access Granted!"
  19.    redstone.setOutput(output, true)
  20.    sleep(pulsout)
  21.    redstone.setOutput(output, false)
  22.    os.shutdown()
  23.   else
  24.     if hax then
  25.     print "Acces Denied! \nLaunching Anti-Grief Security.."
  26.     print "Stand still.. This won't hurt : )"
  27.     redstone.setOutput(haxout, true)
  28.     sleep(pulsout)
  29.     redstone.setOutput(haxout, false)
  30.     os.shutdown()
  31.     else
  32.     print ("Access Denied. Attempts left: ",tries-triescnt)
  33.     write "Password: "
  34.    end
  35.   end
  36. if triescnt == tries then
  37.   print "Maximum Attempts Reached. \nJust who the fuck are you?"
  38.   sleep(2)
  39.   print "System is shutting down.."
  40.   sleep(1)
  41.   os.shutdown()
  42.   else
  43. end
  44. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement