From 81fa0e0481a32f4a200d69fee126a71e214e65ad Mon Sep 17 00:00:00 2001 From: Lunreth Date: Wed, 7 Jul 2021 14:26:18 -0300 Subject: [PATCH] Update README.md --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/README.md b/README.md index 0bd5b28..2e557ed 100644 --- a/README.md +++ b/README.md @@ -5,3 +5,35 @@ https://forums.alliedmods.net/showthread.php?p=2714046 ![image](https://i.imgur.com/jJKgIP0.jpeg) ![image](https://i.imgur.com/hSr2Jsm.jpeg) + +# Admin Commands (ROOT FLAG) +- sm_delete_winrates + - Deletes all rows from database +- sm_delete_player_winrates + - Deletes a player using STEAMID +- sm_delete_map_winrates + - Deletes a map by entering exact name + + +# CVars +- 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 + +# 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: + +`"nmrih_winrates" +{ + "driver" "sqlite" + "database" "nmrih_winrates" +}` + +- Inspired by Dayonn_dayonn plugin: https://forums.alliedmods.net/showthread.php?p=2578250