Author
|
|
BANNED
Join Date: Dec 2019
Location: Argentina, Buenos Aires
|
Plugin ID:
|
7252
|
Plugin Version:
|
1.0.4
|
Plugin Category:
|
Statistical
|
Plugin Game:
|
No More Room in Hell
|
Plugin Dependencies:
|
|
Servers with this Plugin:
|
|
| |
Plugin Description:
|
Records and display winrate stats for every map played in a NMRiH server, inspired by Dayonn_dayonn, uses SQL threaded queries in order to avoid crashes and solves lots of bugs from before.
|
|
|
08-13-2020
, 01:34
[NMRiH] Win Rates (1.0.4)
|
#1
|
WINRATES - NMRiH
Description- Records and display winrate stats for every map played in a NMRiH server, inspired by Dayonn_dayonn, uses SQL threaded queries in order to avoid crashes and solves lots of bugs from before. Code needed to be clean and tidy, so this is a full recode from previous plugin.
More screenshots:
Admin Commands (ROOT FLAG) - sm_delete_winrates --> Deletes all rows from database
- sm_delete_player_winrates <STEAM_1:0:0000000> --> Deletes a player using STEAMID
- sm_delete_map_winrates <map_name> --> Deletes a map by entering exact name
CVARS (.../cfg/sourcemod/nmrih_winrates.cfg) - sm_nmrih_winrates_enabled --> Enable or disable NMRiH Winrates
- sm_nmrih_winrates_debug --> Will spam messages in console and log about any SQL action
- sm_nmrih_winrates_database --> Name of database keyvalue stored in sourcemod/configs/databases.cfg
- sm_nmrih_winrates_table --> Name of table used by database previously defined
Features- Will count a map clear after player getting extracted or after message "All players have been extracted"
- Works even in maps without nmrih_extract_point entities
- SQL Database to store at least 512 different maps, can be changed to more if it were very necessary
- Config file to exclude maps and disable plugin in certain gamemodes that aren't suitable for this
- Full menu display with !winrates command
- Translations available in english and spanish
- A lose can only be stored if a player respawned at least once, otherwise that player never actually "played" the map, only was a spectator until reaching map change
Changelog- 1.0.0 - (13/08/2020)
First release
- 1.0.1 - (17/12/2020)
Increased limit for database storage (512 maps)
Added limit for menu display (100 maps only to avoid critical bug)
Fixed menu bug
- 1.0.2 - (2/06/2022)
Fixed wrong NMS round lose condition check
- 1.0.3 - (12/06/2022)
Fixed wrong syntax inside loading map rows
Improved CFG key detection (map extensions not needed anymore)
- 1.0.4 - (06/07/2022)
Fixed map list disappearing at random times
Improved database connection method
Compile requirements
- autoexecconfig.inc
Install- Simply copy and merge /addons folder with the one in your game directory
- Edit configs/winrates_exclude.cfg --> Add excluded maps from plugin detection, won't be taken into account
- Edit configs/databases.cfg --> Insert a new keyvalue set like the following example:
Quote:
"nmrih_winrates"
{
"driver" "sqlite"
"database" "nmrih_winrates"
}
|
Future plans- Finish web integration to display winrates correctly using MySQL and SQLite, here is a working example using SQLite + php, map results ordered by winrate value:
Based in old plugin from Dayonn_dayonn: https://forums.alliedmods.net/showthread.php?p=2578250
DOWNLOAD
Last edited by Lunreth; 07-06-2022 at 01:55.
|
|
|
|