AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:S] Team Limits (https://forums.alliedmods.net/showthread.php?t=324233)

kushal 05-10-2020 04:06

[CS:S] Team Limits
 
1 Attachment(s)
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

MarcoCSGO 05-14-2020 01:10

Re: [CS:S] Team Limits
 
The plugin does not close the CSGO player select menu, if the player is already on the spectator team.

kushal 05-14-2020 06:16

Re: [CS:S] Team Limits
 
Quote:

Originally Posted by MarcoCSGO (Post 2700030)
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 .

MarcoCSGO 05-14-2020 10:25

Re: [CS:S] Team Limits
 
No problem, just provided this feedback as you mentioned "Not Sure if it Works For CS:GO or TF2".


All times are GMT -4. The time now is 05:32.

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