Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Lunreth authored Jul 7, 2021
1 parent fb7813c commit 81fa0e0
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <STEAM_1:0:0000000>
- Deletes a player using STEAMID
- sm_delete_map_winrates <map_name>
- 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

0 comments on commit 81fa0e0

Please sign in to comment.