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

Teams Manager All-In-One


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose        Approver:   Arkshine (91)
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-03-2012 , 17:12   Teams Manager All-In-One
Reply With Quote #1

Teams Manager All-In-One
Version 0.0.6
by Exolent



Introduction
Instead of all of the separate team management plugins that I have made, I decided to write a complete one.
It includes:
  • auto-join for teams
  • a ratio for teams
  • a limit for each team
  • immunity for admins from all of the above

Cvars
  • team_immunity <0/1>
    - Allows immune admins to not be affected by plugin
    - 0 = Affect admins with plugin
    - 1 = Admins are not affected by ratio, team switching or auto-join, but will be affected by balancing
    - 2 = Admins are not affected by ratio, team switching, auto-join, or balancing
    - Default: 0
  • team_immunity_flag <flag(s)>
    - Flag(s) required to be considered immune
    - If multiple flags, admins must have them all
    - Default: "a"
  • team_autojoin_team <0/1/2/5/6>
    - Team for players to auto-join
    - 0 = Disabled
    - 1 = Terrorists
    - 2 = Counter-Terrorists
    - 5 = Random (Terrorist or Counter-Terrorist)
    - 6 = Spectator
    - Default: 0
  • team_autojoin_favor <0/1/2>
    - If you have team_autojoin_team set to 5 and a player is able to join both teams,
    - This will force a specific team to choose when both teams are viable choices
    - 0 = Disabled
    - 1 = Terrorists
    - 2 = Counter-Terrorists
    - Default: 0
  • team_autojoin_class_t <1/2/3/4/5>
    team_autojoin_class_ct <1/2/3/4/5>
    - Class for players to choose for auto-join
    - 1-4 = Normal models
    - 5 = Random model
    - Default: 5
  • team_allow_switch <0/1>
    - Controls whether players on a team can choose a new team
    - 0 = Cannot choose new team
    - 1 = Allow choose new team
    - Default: 1
  • team_limit_t <limit>
    team_limit_ct <limit>
    - The max players for each team
    - 0 or 32 = Don't set a limit
    - Default: 32
  • team_ratio_t <factor>
    team_ratio_ct <factor>
    - The ratio for T:CT players
    - Example: If T is 3 and CT is 1, then there will be 3 Terrorists for every 1 Counter-Terrorists (or 3x more Terrorists).
    - If both factors are equal or one of them is 0, then no ratio will be put into effect.
    - Default: 1
  • team_balance <method>
    - How the teams should be checked to be balanced every round
    - This is for ensuring the limits/ratios are still in effect in case of other plugins moving players
    - Methods:
    • 0, no, off, none
    • 1, spec, spectate, spectater, spectator
    • 2, move, switch, transfer
    • 3, kick
    - Method Descriptions:
    • 0 = Don't check to balance the teams
    • 1 = Move excess players to spectator
    • 2 = Move excess players to other team (if not breaking the limit/ratio) or move to spectator
    • 3 = Kick players from server
    - Default: "off"

Requirements
  • AMX Mod X version 1.8.1 or higher
  • Steam WITHOUT dproto installed

Changelog
  • Version 0.0.6 (edited by Arkshine)
    - Fixed typo resulting balancing issue
  • Version 0.0.5
    - Added value "2" functionality for cvar team_immunity
    - Added team_autojoin_favor cvar
    - Added support for mp_limitteams cvar
    - Forced mp_limitteams and mp_autoteambalance to 0 after grabbing values to not let the game break the plugin
  • Version 0.0.4
    - Rewrote how ratio is calculated
  • Version 0.0.3
    - Fixed auto-join bug when value was 5 or 6
  • Version 0.0.2
    - Fixed transferring bug when balancing teams
  • Version 0.0.1
    - Initial release

Notes
If you have auto-join turned on to a specific team,
or if you have a team ratio set into place,
make sure you have mp_limitteams set to 0 or 32 in your server.cfg file!


If you have auto-join set to 5 and mp_limitteams is not 0 or 32,
then the auto-join will pick a proper team to not break mp_limitteams.

The auto-join feature overrides the allow switching,
so if you have auto-join to 1 team, then players cannot switch.

If you have any other team managing ideas,
please ask as I am always willing to have more features.
Attached Files
File Type: sma Get Plugin or Get Source (teams_manager.sma - 5757 views - 14.8 KB)
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Arkshine; 06-02-2014 at 17:35.
Exolent[jNr] is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 02-03-2012 , 17:13   Re: Teams Manager All-In-One
Reply With Quote #2

Good Job!
__________________
kramesa is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 02-03-2012 , 17:30   Re: Teams Manager All-In-One
Reply With Quote #3

Another awesome plugin.

You included Team Join Management and Team Ratio plugins you've made before ?
__________________
You can do anything you set your mind to, man.

Devil259 is offline
fantarn
Member
Join Date: Feb 2011
Old 02-03-2012 , 17:38   Re: Teams Manager All-In-One
Reply With Quote #4

Im going to use this, Thanks !
fantarn is offline
pacheco
Senior Member
Join Date: Jul 2011
Old 02-03-2012 , 17:53   Re: Teams Manager All-In-One
Reply With Quote #5

Awesome commands. Nice Exolent, good jobs!
__________________



pacheco is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-03-2012 , 18:10   Re: Teams Manager All-In-One
Reply With Quote #6

Quote:
Originally Posted by Devil259 View Post
Another awesome plugin.

You included Team Join Management and Team Ratio plugins you've made before ?
And the Team Limiter that I made.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 02-03-2012 , 18:58   Re: Teams Manager All-In-One
Reply With Quote #7

Okay, thank you very much.
__________________
You can do anything you set your mind to, man.

Devil259 is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 02-03-2012 , 21:45   Re: Teams Manager All-In-One
Reply With Quote #8

Quote:
team_ratio_t <factor>
team_ratio_ct <factor>
- The ratio for T:CT players
- Example: If T is 3 and CT is 1, then there will be 3 Terrorists for every 1 Counter-Terrorists (or 3x more Terrorists).
- Default: 1
team_ratio_t <factor>
team_ratio_ct <factor>
- The ratio for T:CT players
- Example: If T is 3 and CT is 1, then there will be 3 Terrorists for every 1 Counter-Terrorists (or 3x more Terrorists).
- If both factors are equal or one of them is 0, then no ratio will be put into effect.
- Default: 1
What's a different? i see the same command.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-03-2012 , 22:03   Re: Teams Manager All-In-One
Reply With Quote #9

Quote:
Originally Posted by yokomo View Post
What's a different? i see the same command.
Nothing, just a typo.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 02-04-2012 , 04:16   Re: Teams Manager All-In-One
Reply With Quote #10

Thanks
__________________
kiki33hun is offline
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:05.


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