Features
Note: This is still in alpha, which means anything can be added, changed or removed at a later point in time.
Requirements
- A working database system (Mysql/Mariadb 8.0 above)
- skill_detect plugin. This is only required if you need the extra statistics enabled
- SourceMod version 1.7 above
ConVars
- pstats_enabled - Enable/Disable this plugin
- pstats_debug_enabled - Enable/Disable debug messages
- pstats_versus_exclusive - If set, the plugin will only work for versus gamemodes
- pstats_record_bots - Sets whether we should record bots. By default only human players are recorded.
- pstats_menu_timeout - The timeout value for the player stats panel
- pstats_max_top_players - The max top N players to display
- pstats_extras_enabled - Include extra stats to be recorded
- pstats_display_type - 1 = Display points, 2 = Display the count, 3 = Both points and count
- pstats_show_rank_onjoin - If set, player rank will be displayed to the user on the start of each map
- pstats_cannounce_enabled - If set, connect announce will be displayed to chat when a player joins
Commands
- sm_rank - Display the current stats & ranking of the requesting player. A panel will be displayed to the player.
sm_top - Display the top N players. A menu panel will be displayed to the requesting player
sm_ranks - Display the ranks of the players currently playing in the server. A menu panel will be displayed to the requesting player.
sm_pstats_reload - Reloads plugin configuration. This is useful if you have modified the playerstats.cfg file. This command also synchronizes the modifier values set from the configuration file to the database (This is done by passing 'sync' as an argument)
sm_pstats_wipe - Reset a player record (all stats set to 0)
sm_hidestats - This will hide player's the extra stats from public view (except if the viewing user is an admin)
Change Log
- 1.0.1-alpha - 6/4/2019
- Bug Fix: Extra stats item from player rank panel does not execute when selected
- Bug Fix: Error 'Client index is invalid' thrown during player initialization
- Verify if steamid is valid for ShowInGamePlayerRanks
- Bug Fix: Views in the database were hardcoded to query from 'playerstats' database. This will not work for those who use a different database name.
- Added console command 'sm_hidestats'. Allow players to hide their extra stats from others.
- Bug Fix: Fixed wrong parameter count for Notify().
- 1.0.0-alpha - 6/1/2019
- Initial Release
External Resources
GitHub Page (How to Install) - To get the latest updates and for more detailed information about this plugin.
Any suggestions to improve the plugin are always welcome