karelvysinka

David vytah s heslem

May 2nd, 2015
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.20 KB | None | 0 0
  1. function nn()
  2.   for i = 0, 11 do
  3.     rs.setBundledOutput("back", 8)
  4.     sleep(1)
  5.     rs.setBundledOutput("back", 0)
  6.     sleep(1)
  7.   end
  8. end
  9.  
  10. function nd()
  11.   for i = 0, 11 do
  12.     rs.setBundledOutput("back", 4)
  13.     sleep(1)
  14.     rs.setBundledOutput("back", 0)
  15.     sleep(1)
  16.   end
  17. end
  18.  
  19. function vr()
  20.   for i = 0, 3 do
  21.     rs.setBundledOutput("back", 1)
  22.     sleep(1)
  23.     rs.setBundledOutput("back", 0)
  24.     sleep(1)
  25.   end
  26. sleep(5)
  27.   for i = 0, 3 do
  28.     rs.setBundledOutput("back", 2)
  29.     sleep(1)
  30.     rs.setBundledOutput("back", 0)
  31.     sleep(1)
  32.   end
  33. end
  34.  
  35. function password()
  36.   os.pullEvent = os.pullEventRaw
  37.   print("Pease enter the password to acces srver vault:  ")
  38.   pass = read()
  39.   term.clear()
  40.   if pass == "kapr" then
  41.     term.setCursorPos(1, 1)
  42.     print("Acces granted")
  43.     vr()
  44.     nd()
  45.     nn()
  46.     term.clear()
  47.     term.setCursorPos(1, 1)
  48.     password()
  49.   elseif pass == "kuna12345" then
  50.     term.clear()
  51.     exit()
  52.   else
  53.     term.clear()
  54.     print("ACCES DENIED HAVE A NICE DEATH")
  55.     rs.setBundledOutput("back", 16)
  56.     sleep(1)
  57.     rs.setBundledOutput("back", 0)
  58.     term.clear()
  59.     term.setCursorPos(1, 1)
  60.     password()
  61.   end
  62. end
  63.  
  64. term.clear()
  65. password()
Add Comment
Please, Sign In to add comment