Raised This Month: $51 Target: $400
 12% 

ELO Ranking


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
MikeJS
Senior Member
Join Date: Nov 2008
Plugin ID:
681
Plugin Version:
1.2
Plugin Category:
Statistical
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    17 
    Plugin Description:
    Ranks players using the ELO rating system.
    Old 12-17-2008 , 06:44   ELO Ranking
    Reply With Quote #1

    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);
    Attached Files
    File Type: sp Get Plugin or Get Source (elogeneric.sp - 10191 views - 13.9 KB)
    File Type: sp Get Plugin or Get Source (elotf2.sp - 5322 views - 13.9 KB)

    Last edited by MikeJS; 01-14-2009 at 13:39.
    MikeJS is offline
     



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 11:35.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode