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

Auto Team Balance based on K/D ratio


Post New Thread Reply   
 
Thread Tools Display Modes
Author
keldra
New Member
Join Date: Aug 2023
Plugin ID:
8535
Plugin Version:
1.0
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    title explains everything really, just thought I'd share it
    Old 08-27-2023 , 11:54   Auto Team Balance based on K/D ratio
    Reply With Quote #1

    apparently this can't be blank
    Attached Files
    File Type: sp Get Plugin or Get Source (atb.sp - 145 views - 4.7 KB)
    File Type: smx atb.smx (5.6 KB, 49 views)
    keldra is offline
    ByDexter
    Member
    Join Date: Apr 2019
    Location: Turkey (Istanbul)
    Old 08-27-2023 , 15:15   Re: Auto Team Balance based on K/D ratio
    Reply With Quote #2

    Good!
    __________________

    Last edited by ByDexter; 08-27-2023 at 15:15.
    ByDexter is offline
    ksiontop
    Junior Member
    Join Date: Feb 2023
    Location: Albania
    Old 08-28-2023 , 12:10   Re: Auto Team Balance based on K/D ratio
    Reply With Quote #3

    Cant compile
    ksiontop is offline
    keldra
    New Member
    Join Date: Aug 2023
    Old 08-28-2023 , 13:13   Re: Auto Team Balance based on K/D ratio
    Reply With Quote #4

    Quote:
    Originally Posted by ksiontop View Post
    Cant compile
    what's the error?
    keldra is offline
    ksiontop
    Junior Member
    Join Date: Feb 2023
    Location: Albania
    Old 08-29-2023 , 05:29   Re: Auto Team Balance based on K/D ratio
    Reply With Quote #5

    atb.sp(67) : error 105: cannot find method or property "ArrayList.Sort"
    ksiontop is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 08-29-2023 , 06:53   Re: Auto Team Balance based on K/D ratio
    Reply With Quote #6

    Quote:
    Originally Posted by ksiontop View Post
    atb.sp(67) : error 105: cannot find method or property "ArrayList.Sort"
    SM1.10 or newer is required to compile

    Quote:
    Originally Posted by keldra View Post
    apparently this can't be blank
    please use in plugins for messages English, not Turkish:
    PrintToChat(player.iClient, "[SM]Takım eşitlemesi için \x09T \x01takımına atıldın.");
    ==>
    PrintToChat(player.iClient, " \x06[SM] \x01You got kicked into the \x09T \x01team for team equalization.");

    or add support for translation files:
    PrintToChat(player.iClient, "[SM]Takım eşitlemesi için \x09T \x01takımına atıldın.");
    ==>
    PrintToChat(player.iClient, " \x06[SM] \x01%t", "ChatMsg", "\x09T\x01");
    and in translation file:
    PHP Code:
    "Phrases"
    {
        
    "ChatMsg"
        
    {
            
    "#format"    "{1:s}"
            "en"    "You got kicked into the {1} team for team equalization."
            "tr"    "Takım eşitlemesi için {1} takımına atıldın."
        
    }

    __________________
    Grey83 is offline
    ksiontop
    Junior Member
    Join Date: Feb 2023
    Location: Albania
    Old 08-29-2023 , 17:07   Re: Auto Team Balance based on K/D ratio
    Reply With Quote #7

    [QUOTE=Grey83;2809456]SM1.10 or newer is required to compile

    yes im tried 1.11 and im getting that error
    ksiontop is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 08-29-2023 , 23:07   Re: Auto Team Balance based on K/D ratio
    Reply With Quote #8

    Quote:
    Originally Posted by ksiontop View Post
    yes im tried 1.11 and im getting that error
    sm1.11.0.6927
    latest build is 6936: https://www.sourcemod.net/downloads.php
    Click image for larger version

Name:	изображение_2023-08-30_0606313.png
Views:	34
Size:	21.4 KB
ID:	201455
    Attached Files
    File Type: smx atb.smx (5.6 KB, 20 views)
    __________________

    Last edited by Grey83; 08-29-2023 at 23:08.
    Grey83 is offline
    M1K@c
    New Member
    Join Date: Sep 2023
    Old 09-09-2023 , 13:09   Re: Auto Team Balance based on K/D ratio
    Reply With Quote #9

    I've tested the plugin and I think it balances the players too much almost and alive players kill each other. My suggestion is if you can make changes only if there are plus 2 in one team then balance them based K/D ratio
    M1K@c is offline
    keldra
    New Member
    Join Date: Aug 2023
    Old 09-10-2023 , 12:59   Re: Auto Team Balance based on K/D ratio
    Reply With Quote #10

    Quote:
    Originally Posted by M1K@c View Post
    I've tested the plugin and I think it balances the players too much almost and alive players kill each other. My suggestion is if you can make changes only if there are plus 2 in one team then balance them based K/D ratio
    Honestly, this plugin was very specifically tailored to my needs and I only shared it so that others could make use of the implementation. I didn't plan on making it a more general use thing so I don't really want to bother with working on it anymore.
    keldra 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 04:54.


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