Description:
WinRate plugin records the count of plays, the count of winning, and the winning average for each player, each map in MySQL for
NMRiH. By entering a command in the chat field, the plyer can view the recorded information.
Made by Dayonn_dayonn
http://steamcommunity.com/profiles/76561198355987637/
Uploaded by yomox9
http://steamcommunity.com/id/yomox9/
My english is poor. So please simple sentence.
Chat command:
!winrate or !wr
Enter it in the chat field.
Example:
Installation:
1.
Install the database software "MySQL" to the server where you want to store the database.
MySQL Community Server (GPL) of MySQL Community Edition (GPL).That is freeware.
2.
Open /configs/NMRiH_WinRate.cfg and change that setting.
3.
Copy these files.
NMRiH_WinRate.cfg --> addons/sourcemod/configs/
NMRiH_WinRate.phrases.txt --> addons/sourcemod/translations/
NMRiH_WinRate.smx --> addons/sourcemod/plugins/
NMRiH_WinRate.sp --> addons/sourcemod/scripting/
4.
Open addons/sourcemod/configs/databases.cfg and add the settings.
As an example, if "Database_keyvalues" of NMRiH_WinRate.cfg is "nmrih_winrate", it becomes as follows.
Code:
//--------------------------------------------
"nmrih_winrate"
{
"driver" "mysql"
"host" "localhost"
"database" "nmrih_winrate_data"
"user" "root"
"pass" "root"
}
//--------------------------------------------
"nmrih_winrate" -- The key value of "Database_keyvalues".
"driver" -- Set this to "mysql".
"host" -- If the server executing NMRiH and the server where the database is located are the same, set this to
"localhost". If it is different, enter the URL or IP address of the server where the database is
located.
"database" -- The database name. As with table names, there are restrictions on characters.
"user" -- Your Mysql user name.
"pass" -- Your Mysql password.
Even if the key values of "Database_keyvalues" and "database" are made the same, there is no problem.
5.
Create a database with MySQL Command Line Client.
As an example, if "database" is "nmrih_winrate_data" in databases.cfg, it becomes as follows.
Code:
//---------------------------------------
create database nmrih_winrate_data;
//---------------------------------------
6.
Load this plugin at NMRiH.
Code:
//---------------------------------
sm plugins load NMRiH_WinRate
//---------------------------------
Uninstallation:
1.
Delete these files.
addons/sourcemod/configs/NMRiH_WinRate.cfg
addons/sourcemod/translations/NMRiH_WinRate.phrases.txt
addons/sourcemod/plugins/NMRiH_WinRate.smx
addons/sourcemod/scripting/NMRiH_WinRate.sp
2.
Delete the database with MySQL Command Line Client.
As an example, if "database" is "nmrih_winrate_data" in databases.cfg, it becomes as follows.
//---------------------------------------
drop database nmrih_winrate_data;
//---------------------------------------
3.
If you need, uninstall the database software "MySQL".
Changelog:
02/15/2018 v1.0.5 Initial release
03/31/2018 v1.0.6
- (Fix) Overall change of Explanatory text.(Except for .sp files.)
- (Fix) Change the file name to follow other plugins.
- (Fix) Supported the game interruption by rtv, mapchooser, and console command (changelevel, changelevel_next).