View Single Post
Werewolf_UK
AlliedModders Donor
Join Date: Oct 2010
Location: United Kingdom
Old 07-04-2017 , 03:08   Re: [Any] Save player chat to file V1.2.1
Reply With Quote #33

Quote:
Originally Posted by Ethorbit View Post
I love this addon and so I made a few modifications and added 2 new features.
1. Player disconnects are logged
2. All player console commands are logged, ones that are console commands have [COMMAND]: behind the commands and chat messages are in the same format as before.

Both require sc_record_detail to be set on 1.

Source file:
https://depositfiles.com/files/lgglwhm9z

Compiled file:
https://depositfiles.com/files/iiym0g2g6

I don't like deposit files at all, but we can't reply to posts with our own uploaded files and I know that I will never use deposit files again, so these uploads should be up forever.
Compiled and tested against SourceMod 1.8.0.6014 on a TF2 server, so I can confirm it works.

The additions you've made are welcome and I like them, though I have a couple of suggestions.
  1. Make player disconnects NOT require the use of the sc_record_detail cvar, as the joining detail does not require this.
  2. Filter out or ignore certain commands that are entered via the console. Things like VModEnable 1 and 'team_ui_setup' aren't things we need logged. I would say that any command manually entered into the console, team changes and class changes only really need to be logged, otherwise you end up with very long, large log files with a tonne of detail you don't need.
__________________
Werewolf_UK is offline