Raised This Month: $ Target: $400
 0% 

[CS:S] Team Limits


Post New Thread Reply   
 
Thread Tools Display Modes
Author
kushal
Junior Member
Join Date: Apr 2019
Location: India, West Bengal
Plugin ID:
7094
Plugin Version:
1.0.1
Plugin Category:
All
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    25 
    Plugin Description:
    Sets the maximum players allowed on both teams combined, others will be forced to spectator
    Old 05-10-2020 , 05:06   [CS:S] Team Limits
    Reply With Quote #1

    Team Limits For CS:S
    Not Sure if it Works For CS:GO or TF2

    originally asked by - BRDominik (for csgo)

    [*]IMPORTANT
    You Should Not Use this Plugin with BGF_Warmod or CS:S Warmod By Twelve-60
    Both Cvars Will Collide due to Existing Cvars and Works in that plugins.


    Sets the maximum players allowed on both teams combined, others will be forced to spectator
    Utilizes the warmod.inc by Twelve60
    PHP Code:

    stock int CS_GetPlayingCount
    () {
        
    int count;
        
        for (
    int i 1<= MaxClientsi++) {
            if (
    IsClientInGame(i) && !IsFakeClient(i) && GetClientTeam(i) > 1) {
                
    count++;
            }
        }
        
        return 
    count;




    CVARS -
    "wm_max_players", Default = "0",
    "Sets the maximum players allowed on both teams combined, others will be forced to spectator (0 = unlimited)

    Max = 64.0
    Min = 0.00


    SOURCE - Github
    Attached Files
    File Type: sp Get Plugin or Get Source (admin_wl.sp - 572 views - 1.9 KB)
    __________________
    HELLO THERE
    ________________________________
    Wish There was a respawn Button in Life

    Last edited by kushal; 05-10-2020 at 05:30.
    kushal is offline
    Send a message via Skype™ to kushal
    MarcoCSGO
    Member
    Join Date: May 2020
    Old 05-14-2020 , 02:10   Re: [CS:S] Team Limits
    Reply With Quote #2

    The plugin does not close the CSGO player select menu, if the player is already on the spectator team.
    MarcoCSGO is offline
    kushal
    Junior Member
    Join Date: Apr 2019
    Location: India, West Bengal
    Old 05-14-2020 , 07:16   Re: [CS:S] Team Limits
    Reply With Quote #3

    Quote:
    Originally Posted by MarcoCSGO View Post
    The plugin does not close the CSGO player select menu, if the player is already on the spectator team.
    The Plugin is Literally written for Cs Source ... I have Not Intended to Make it work with Csgo .
    __________________
    HELLO THERE
    ________________________________
    Wish There was a respawn Button in Life
    kushal is offline
    Send a message via Skype™ to kushal
    MarcoCSGO
    Member
    Join Date: May 2020
    Old 05-14-2020 , 11:25   Re: [CS:S] Team Limits
    Reply With Quote #4

    No problem, just provided this feedback as you mentioned "Not Sure if it Works For CS:GO or TF2".
    MarcoCSGO 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 15:54.


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