Raised This Month: $32 Target: $400
 8% 

[CS:GO] Max Players per Team


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BRDominik
Junior Member
Join Date: Jun 2010
Old 12-29-2013 , 17:25   [CS:GO] Max Players per Team
Reply With Quote #1

I'm searching for a working plugin for CS:GO, that limits the max quantity of players in a certain team.

What I mean:
  • Max Players Per Team: 5
  • That means: 5 CT's and 5 TR's playing against each other.
  • Anyone that enters when the teams are full, is assigned to Spectator

If possible, when the match is yet to start, place the game on infinite warm up, till there are X players in the server(Or Max player per team*2).

Last edited by BRDominik; 12-29-2013 at 17:27.
BRDominik is offline
BRDominik
Junior Member
Join Date: Jun 2010
Old 01-07-2014 , 22:50   Re: [CS:GO] Max Players per Team
Reply With Quote #2

Anyone has any idea if this exist or might want to do it?
BRDominik is offline
versatile_bfg
Veteran Member
Join Date: Feb 2012
Old 01-08-2014 , 03:16   Re: [CS:GO] Max Players per Team
Reply With Quote #3

This is from my Warmod_BFG. Not exactly what you want but could be a starting point for you.

Sets the maximum players allowed on both teams combined, others will be forced to spectator

PHP Code:
new Handle:g_h_max_players INVALID_HANDLE;

RegConsoleCmd("jointeam"ChooseTeam);

g_h_max_players CreateConVar("wm_max_players""10""Sets the maximum players allowed on both teams combined, others will be forced to spectator (0 = unlimited)"FCVAR_NOTIFYtrue0.0);

public 
Action:ChooseTeam(clientargs)
{
    if (!
IsActive(clienttrue))
    {
        return 
Plugin_Continue;
    }

    if (
client == 0)
    {
        return 
Plugin_Continue;
    }

    if (
g_match && GetClientTeam(client) > && GetConVarBool(g_h_locked))
    {
        
PrintToChat(client"\x01 \x09[\x04%s\x09]\x01 %t"CHAT_PREFIX"Change Teams Midgame");
        return 
Plugin_Stop;
    }

    new 
max_players GetConVarInt(g_h_max_players);
    if ((
g_ready_enabled || g_match) && max_players != && GetClientTeam(client) <= && CS_GetPlayingCount() >= max_players)
    {
        
PrintToChat(client"\x01 \x09[\x04%s\x09]\x01 %t"CHAT_PREFIX"Maximum Players");
        
ChangeClientTeam(clientSPECTATOR_TEAM);
        return 
Plugin_Stop;
    }

    return 
Plugin_Continue;

__________________
versatile_bfg is offline
wakedb
Member
Join Date: Dec 2019
Location: unknwn
Old 03-23-2020 , 06:47   Re: [CS:GO] Max Players per Team
Reply With Quote #4

this plugin cannot be compiled

Code:
Your plugin failed to compile! Read the errors below:
SourcePawn Compiler 1.10.0.6453
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2018 AlliedModders LLC

/groups/sourcemod/upload_tmp/textcTq2KS.sp(3) : error 021: symbol already defined: "RegConsoleCmd"
/groups/sourcemod/upload_tmp/textcTq2KS.sp(5) : error 021: symbol already defined: "g_h_max_players"
/groups/sourcemod/upload_tmp/textcTq2KS.sp(5) : error 008: must be a constant expression; assumed zero
/groups/sourcemod/upload_tmp/textcTq2KS.sp(9) : error 017: undefined symbol "IsActive"
/groups/sourcemod/upload_tmp/textcTq2KS.sp(19) : error 017: undefined symbol "g_match"
/groups/sourcemod/upload_tmp/textcTq2KS.sp(21) : error 017: undefined symbol "CHAT_PREFIX"
/groups/sourcemod/upload_tmp/textcTq2KS.sp(26) : error 017: undefined symbol "g_ready_enabled"
/groups/sourcemod/upload_tmp/textcTq2KS.sp(28) : error 017: undefined symbol "CHAT_PREFIX"
/groups/sourcemod/upload_tmp/textcTq2KS.sp(29) : error 017: undefined symbol "SPECTATOR_TEAM"

9 Errors.
__________________
wakedb is offline
kushal
Junior Member
Join Date: Apr 2019
Location: India, West Bengal
Old 05-10-2020 , 04:14   Re: [CS:GO] Max Players per Team
Reply With Quote #5

works For Css Not tested for CSGO
https://forums.alliedmods.net/showth...94#post2699194
__________________
HELLO THERE
________________________________
Wish There was a respawn Button in Life
kushal is offline
Send a message via Skype™ to kushal
Reply



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 03:27.


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