CSGO (method is different, requires manual hooks and/or changes)
Admin Commands: (requires "z" flag)
PHP Code:
sm_um_listen // Starts listening to all UserMessages. Filters or listens for messages from the filter and listen cvars.
sm_um_stop // Stop printing UserMessages.
sm_um_watch // Start printing UserMessages. Usage: sm_um_watch <messages to watch, separate by commas>
ConVars:
Saved to usermsg_hooks.cfg in your servers \cfg\sourcemod\ folder.
PHP Code:
// Do not hook and these UserMessages, separate by commas (no spaces). Only works for sm_usermsg_listen command.
sm_usermsg_filter ""
// Only hook and display these UserMessages, separate by commas (no spaces). Only works for sm_usermsg_listen command.
sm_usermsg_listen ""
// 0=Off. 1=Logs all UserMessage structures. 2=Log listen UserMessage data. 4=Log listen UserMessage data with timestamps. Add numbers together.
sm_usermsg_logging "1"
1.8 (03-Apr-2024)
- Fixed potential memory leak. Thanks to "little_froy" for reporting.
1.7 (28-Jan-2024)
- Fixed memory leak caused by clearing StringMap/ArrayList data instead of deleting.
1.6 (07-Nov-2023)
- Fixed not deleting handles on plugin start.
1.5 (04-Dec-2021)
- Changes to fix warnings when compiling on SourceMod 1.11.
1.4 (20-Apr-2021)
- Fixed compile errors on SourceMod 1.11.
1.3 (01-Dec-2019)
- Changed timestamps to use 24 hour format.
1.2 (29-Nov-2019)
- Fixed percent formatting operators breaking print to chat.
1.1 (24-Nov-2019)
- Plugin now logs an error and quits when failing to find required "UserMessageBegin" function.
- Prints which functions are hooked when VERBOSE = 1.
1.0 (15-Oct-2019)
- Initial release.
1.1 (24-Nov-2019)
- Plugin now logs an error and quits when failing to find required "UserMessageBegin" function.
- Prints which functions are hooked when VERBOSE = 1.