Guest User

Untitled

a guest
Oct 20th, 2015
1,005
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.06 KB | None | 0 0
  1. require("amplify") -- CREDITS TO MY NIGGA FUNCTION FOR AMPLIFY
  2.  
  3. local function StealTheirShit()
  4.  
  5.     -- look at snek until file stealing has finished.
  6.     // gui.OpenURL( "https://boards.4chan.org/s4s/catalog" )
  7.  
  8.     local ServerName = GetHostName() -- Sanitise?
  9.     local ClientFiles = amplify.ClientLua.ListFiles()
  10.  
  11.     for index, scriptname in next, ClientFiles do
  12.  
  13.         local sauce = amplify.ClientLua.DecompressByIndex(index)
  14.         local path = ServerName -- Folder which stores files.
  15.         local dirs = string.Split(scriptname, '/')
  16.         local name = dirs[#dirs]
  17.         dirs[#dirs]= nil
  18.  
  19.         for index, dir in next, dirs do
  20.        
  21.             path = path..'/'..dir
  22.             file.CreateDir(path)
  23.        
  24.         end
  25.  
  26.         file.Write(path..'/'..name..".txt", sauce)
  27.        
  28.         coroutine.wait(0) -- coroutine.yield fucks the coroutine up? :s
  29.        
  30.     end
  31.  
  32.     hook.Remove("Awoo~")
  33.     RunConsoleCommand("say", "Awoo~")
  34.    
  35. end
  36.  
  37. -- Coroutine for asynchronous file stealing (so it doesn't crash).
  38. local routine = coroutine.create(StealTheirShit)
  39. hook.Add("Think", "Awoo~", function() coroutine.resume(routine) end)
  40.  
  41. -- Sadistic
Advertisement
Add Comment
Please, Sign In to add comment