Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require("amplify") -- CREDITS TO MY NIGGA FUNCTION FOR AMPLIFY
- local function StealTheirShit()
- -- look at snek until file stealing has finished.
- // gui.OpenURL( "https://boards.4chan.org/s4s/catalog" )
- local ServerName = GetHostName() -- Sanitise?
- local ClientFiles = amplify.ClientLua.ListFiles()
- for index, scriptname in next, ClientFiles do
- local sauce = amplify.ClientLua.DecompressByIndex(index)
- local path = ServerName -- Folder which stores files.
- local dirs = string.Split(scriptname, '/')
- local name = dirs[#dirs]
- dirs[#dirs]= nil
- for index, dir in next, dirs do
- path = path..'/'..dir
- file.CreateDir(path)
- end
- file.Write(path..'/'..name..".txt", sauce)
- coroutine.wait(0) -- coroutine.yield fucks the coroutine up? :s
- end
- hook.Remove("Awoo~")
- RunConsoleCommand("say", "Awoo~")
- end
- -- Coroutine for asynchronous file stealing (so it doesn't crash).
- local routine = coroutine.create(StealTheirShit)
- hook.Add("Think", "Awoo~", function() coroutine.resume(routine) end)
- -- Sadistic
Advertisement
Add Comment
Please, Sign In to add comment