I was sick of other rating plugins giving you hundreds of points for useless things such as building teleporter entrances and forcing tons of spam upon you, so I made my own that relies more on skill (except demomen still get points
) than time played and saves whether you want to have your chat spammed. There is a TF2 specific version which gives medics 1/3 of the points the person they're healing gets.
NON TF2 VERSION IS UNTESTED
Thanks to R_Hehl (r5053) for N1G-TF2-RANK, which was useful for seeing how things are done and for the arena hook.
Cvars:
Code:
// ELO Ranking K-value.
sm_elo_k "16"
Players can use the following commands in chat:
- rank - Displays their rating, rank and KPD
- session - Displays session stats
- top10 - Displays top 10 players
- elo_notify - Toggle chat notifications/spam (defaults to off)
Installation:
Put the .smx with all your plugins.
(Optional) Create a database called "elo" in your configs/databases.cfg
Changelog:
27/12/08 1.2 - Fixed quote bug
23/12/08 1.1 - Added arena hook from r5053
17/12/08 1.0 - Initial Release
Enabling notifications by default:
Replace line 90 (95 in non TF2 version) with
Code:
Format(query, sizeof(query), "INSERT INTO elostats VALUES('%s', '%N', 1600, 0, 0, 1)", clientid, client);
and line 93 (98 in non TF2 version) with
Code:
Format(query, sizeof(query), "INSERT INTO elostats (steamid, name, rating, kills, deaths, notify) VALUES ('%s', '%N', 1600, 0, 0, 1)", clientid, client);