Python1320

Untitled

Nov 24th, 2010
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. file.OldRead = file.OldRead or file.Read
  2.  
  3. FILE_READ_MONITOR = true
  4.  
  5. local dont_show = {
  6.     "pac2_outfits",
  7.     "adv_duplicator",
  8.     "nero/users",
  9.     "jailed_players",
  10.     "pac_bans",
  11. }
  12.  
  13. local function CheckPath(str)
  14.     for k,v in pairs(dont_show) do
  15.         if str:find(v, nil, true) then
  16.             return true
  17.         end
  18.     end
  19. end
  20.  
  21. function file.Read(path, uh)
  22.     if FILE_READ_MONITOR and CheckPath(path) then
  23.         debug.Trace()
  24.         print(path, uh)
  25.     end
  26.     return file.OldRead(path, uh)
  27. end
Advertisement
Add Comment
Please, Sign In to add comment