Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local DERPLOGING = {};
- function Log2File(msg, filename)
- local read_file = file.Read(filename) or "";
- if !DERPLOGING[filename] then
- file.Write(filename, read_file .. "\n\n------------------------------------------- NEW SESSION -------------------------------------------\n\n" .. msg)
- DERPLOGING[filename] = true
- else
- file.Write(filename, read_file .. "\n" .. msg)
- end
- end
- for k,v in pairs(ents.GetAll()) do
- Log2File(v:GetClass(), "shit_entities.txt")
- end
Add Comment
Please, Sign In to add comment