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

[CS:GO/Any] Top System [MySQL] (v1.0 | 25 January 2020)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
KoNLiG
AlliedModders Donor
Join Date: Sep 2020
Location: Israel
Plugin ID:
7475
Plugin Version:
1.0
Plugin Category:
Statistical
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Provides a modular top system, with special feature to automatically reset the top statistics every certain time.
    Old 01-25-2021 , 16:34   [CS:GO/Any] Top System [MySQL] (v1.0 | 25 January 2020)
    Reply With Quote #1

    Top System


    Description:
    This plugin offers a modular Top System, that allows players to see who is the best player in each top category.

    Features:

    Quote:
    • Automatically updates each category players stats in real-time.
    • Organizable with categories.
    • Special feature which allows to automatically reset and save the top winners in each category every certain time, changeable with a ConVar.
    • Ability for Root administrators to reset and save a specific top category.
    • No limit to adding categories.
    • Option to create your own categories.
    Commands:
    Quote:
    sm_tops - Access the top categories list menu.
    sm_top - Access the tops categories list menu. (An Alias)
    Comes with 6 categories (You can edit & create one by yourself):
    Quote:
    1. Top Awp Kills
    2. Top Deaths
    3. Top Kills
    4. Top Knife Kills
    5. Top MVP's
    6. Top Playtime [Minutes]
    Installation:

    Quote:
    1. Place 'TopSystem.smx' in '/csgo/addons/sourcemod/plugins/'.
    2. Place your desired categories in '/csgo/addons/sourcemod/plugins/'.
    3. Add database config 'TopSystem' to '/csgo/addons/sourcemod/configs/databases.cfg'.
    Quote:
    "TopSystem"
    {
    "driver" "mysql"
    "host" ""
    "database" ""
    "user" ""
    "pass" ""
    //"timeout" "0"
    //"port" "0"
    }
    ConVars:
    Code:
    // Starting points to set for every category once its created.
    // -
    // Default: "0"
    top_categories_start_points "0"
    
    // Amount of days until every top category resets, 0 to disable the reset.
    // -
    // Default: "7"
    // Minimum: "0.000000"
    // Maximum: "90.000000"
    top_days_until_reset "7"
    
    // If true, every progress change will be print with a chat message, 0 To disable the print.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    top_print_progress_messages "1"
    
    // Amount of clients that will be shown on the quests menu.
    // -
    // Default: "50"
    // Minimum: "5.000000"
    // Maximum: "100.000000"
    top_show_clients_amount "50"
    Change Log:
    Quote:
    25 January, 2020 [1.0]
    • Released the mod.
    To compile you have to use 1.11+ SourceMod compiler.

    GitHub Repository
    Latest Release
    __________________
    For questions/plugin requests contact me:

    • Discord: KoNLiG#6417
    • Steam: KoNLiG

    Last edited by KoNLiG; 12-01-2021 at 14:39.
    KoNLiG is offline
    LuqS
    AlliedModders Donor
    Join Date: Jun 2019
    Location: Israel
    Old 01-25-2021 , 17:03   Re: [CS:GO/Any] Top System [MySQL] (v1.0 | 25 January 2020)
    Reply With Quote #2

    Great Plugin!
    __________________
    You like my work? You want to support?
    Consider Donating!

    Need signatures / offsets for CS:GO?
    Contact me:
    LuqS is offline
    kratoss1812
    Senior Member
    Join Date: May 2018
    Location: Romβnia
    Old 01-25-2021 , 17:53   Re: [CS:GO/Any] Top System [MySQL] (v1.0 | 25 January 2020)
    Reply With Quote #3

    Some ideas for future updates
    - Make a option to change PREFIX without recompiling a file
    - Add translations support

    I Like the fact that I can add my own top category, co feature!
    __________________
    kratoss1812 is offline
    Effeff
    AlliedModders Donor
    Join Date: Jan 2019
    Location: discord: ff#0533
    Old 01-25-2021 , 22:23   Re: [CS:GO/Any] Top System [MySQL] (v1.0 | 25 January 2020)
    Reply With Quote #4

    This is nice. I want to make modules for "Rounds played", "Kill Death Ratio" and "Kills per Round" when I get the chance.

    Also, I have been interested in a plugin that keeps track of top stats for players by each map, in addition to overall stats. I think the idea is too much overhead though, making a new table for each map that gets played.
    Effeff is offline
    TorNim0s
    Junior Member
    Join Date: May 2020
    Old 01-26-2021 , 00:15   Re: [CS:GO/Any] Top System [MySQL] (v1.0 | 25 January 2020)
    Reply With Quote #5

    Liked your plugin, good job!
    __________________
    For questions or requests contact me in private

    Discort: TorNim0s#7102
    TorNim0s is offline
    Effeff
    AlliedModders Donor
    Join Date: Jan 2019
    Location: discord: ff#0533
    Old 01-27-2021 , 00:57   Re: [CS:GO/Any] Top System [MySQL] (v1.0 | 25 January 2020)
    Reply With Quote #6

    As I wrote 2 comments above, I want to create some modules (one for KDR, one for KPR). I have some problems though.

    KDR and KPR are both floats, but your plugin does not appear to support floats.

    Also, there are two ways (I think) that I can implement KDR. One is by combining the code of the Kills and Deaths modules into one plugin, and then creating three Top Categories in this plugin (kills, deaths, and KDR). However, this means I cannot implement KPR, which would also need to use Kills. To implement KPR, I would have to also combine it into the plugin, and at this point, why use modules at all?

    Instead, I can implement KDR by using Top_AddCategory on categories that already exist, "kills" and "deaths", because you made these return the index if they do exist. This has a problem though - I don't want to accidentally create these categories if the KDR module loads first. Maybe you can split this into Top_FindCategory? Anyway after this, I can use Top_GetPoints to get the Kills and Deaths. This, however, also has some problems.

    One problem is, I need to make sure that the database updates kills and deaths when they happen, before I try to use GetPoints to update the KDR.
    Another problem is, there does not exist Top_SetPoints. So, I have to do Top_TakePoints(client, Top_GetPoints(client, g_iTopId)); and then after this I do Top_AddPoints(client, kdr).

    If you cannot or do not want to make these changes to solve this, that is okay

    Last edited by Effeff; 01-27-2021 at 01:25.
    Effeff is offline
    raj kaul
    Senior Member
    Join Date: Mar 2018
    Location: www.lotgaming.xyz
    Old 01-28-2021 , 10:22   Re: [CS:GO/Any] Top System [MySQL] (v1.0 | 25 January 2020)
    Reply With Quote #7

    first of all thank you so much for this great plugin
    any future plan for this project ? i mean like a webpage/webpanel where player can see and track his stats like ingame ?
    or discord webhooks to get notification for top players list .
    __________________

    Last edited by raj kaul; 01-28-2021 at 10:24.
    raj kaul is offline
    Reply


    Thread Tools
    Display Modes

    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 22:39.


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