AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Teams Manager All-In-One (https://forums.alliedmods.net/showthread.php?t=177592)

Exolent[jNr] 02-03-2012 17:12

Teams Manager All-In-One
 
1 Attachment(s)
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.

kramesa 02-03-2012 17:13

Re: Teams Manager All-In-One
 
Good Job!

Devil259 02-03-2012 17:30

Re: Teams Manager All-In-One
 
Another awesome plugin.

You included Team Join Management and Team Ratio plugins you've made before ?

fantarn 02-03-2012 17:38

Re: Teams Manager All-In-One
 
Im going to use this, Thanks !

pacheco 02-03-2012 17:53

Re: Teams Manager All-In-One
 
Awesome commands. Nice Exolent, good jobs!

Exolent[jNr] 02-03-2012 18:10

Re: Teams Manager All-In-One
 
Quote:

Originally Posted by Devil259 (Post 1643960)
Another awesome plugin.

You included Team Join Management and Team Ratio plugins you've made before ?

And the Team Limiter that I made.

Devil259 02-03-2012 18:58

Re: Teams Manager All-In-One
 
Okay, thank you very much.

yokomo 02-03-2012 21:45

Re: Teams Manager All-In-One
 
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.

Exolent[jNr] 02-03-2012 22:03

Re: Teams Manager All-In-One
 
Quote:

Originally Posted by yokomo (Post 1644075)
What's a different? i see the same command.

Nothing, just a typo.

kiki33hun 02-04-2012 04:16

Re: Teams Manager All-In-One
 
Thanks :D

echo_cs 02-04-2012 05:43

Re: Teams Manager All-In-One
 
Very nice Plugin Good great

Lolz0r 02-04-2012 08:44

Re: Teams Manager All-In-One
 
Good Job, indeed a very useful plugin. :twisted:

Exolent[jNr] 02-05-2012 23:09

Re: Teams Manager All-In-One
 
Updated to v0.0.2

Quote:

Originally Posted by Exolent[jNr] (Post 1643945)
Changelog
  • Version 0.0.2
    - Fixed transferring bug when balancing teams


Exolent[jNr] 02-06-2012 10:13

Re: Teams Manager All-In-One
 
Updated to v0.0.3
Quote:

Originally Posted by Exolent[jNr] (Post 1643945)
Changelog
  • Version 0.0.3
    - Fixed auto-join bug when value was 5 or 6


Pastout 02-06-2012 10:27

Re: Teams Manager All-In-One
 
There is something wrong with the ratio part of the code i have tested it and it seems to not balance the right ratio.

Edit: Also if you have force join team on random and the ratio set 3:1 the team that has the higher ratio has more people you will not be able to join a team.

Exolent[jNr] 02-06-2012 10:33

Re: Teams Manager All-In-One
 
Make sure you have these cvars set:
mp_limitteams 0
mp_autoteambalance 0

Pastout 02-06-2012 10:52

Re: Teams Manager All-In-One
 
Okay, but the ratio is not calculated correctly i have tested again and it does not set the right ratio
This was my i got for a result

cvar team_ratio_t 3
cvar team_ratio_ct 1

Lets say i had 20 players in the server 19 where on T and 1 was on CT the on round start when the ratio would be fix 12 players from T would go CT Making 13ct - 7t

Exolent[jNr] 02-06-2012 13:34

Re: Teams Manager All-In-One
 
Try it now, updated to v0.0.4
Quote:

Originally Posted by Exolent[jNr] (Post 1643945)
Changelog
  • Version 0.0.4
    - Rewrote how ratio is calculated


Pastout 02-06-2012 13:48

Re: Teams Manager All-In-One
 
Works like a charm nice job!

Exolent[jNr] 02-06-2012 13:49

Re: Teams Manager All-In-One
 
Quote:

Originally Posted by Pastout (Post 1645620)
Works like a charm nice job!

Glad to hear it finally works.

Shadymn 02-07-2012 00:26

Re: Teams Manager All-In-One
 
mmm alive transfer..? :) sorry for noob english

RoaR 02-07-2012 05:15

Re: Teams Manager All-In-One
 
Does it check if user is alive or not while transfering?

Exolent[jNr] 02-07-2012 09:29

Re: Teams Manager All-In-One
 
It only transfers players on round start, so players should be alive.
When it does transfer players, it will revive if put on T/CT, or killed if put in Spectator.

Exolent[jNr] 02-07-2012 17:33

Re: Teams Manager All-In-One
 
Updated to v0.0.5.

Notes have changed and are important!

Quote:

Originally Posted by Exolent[jNr] (Post 1643945)
Changelog
  • 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.


Exolent[jNr] 02-08-2012 00:08

Re: Teams Manager All-In-One
 
Fixed small issue, did not bother for a new version since there were such a few download count.

Astro 02-10-2012 15:12

Re: Teams Manager All-In-One
 
It would be nice if there was a way to specify minimum number of players required in the server for plugin to apply the ratios. Problem:

team_ratio_t 2
team_ratio_ct 1

Player 1 connects and is forced to join T, but when Player 2 connects they are forced to join T aswell so they need a third one to play.

mohsen9010 02-15-2012 02:17

Re: Teams Manager All-In-One
 
Nice Plugin Exolent xD

luki1412 05-12-2012 15:26

Re: Teams Manager All-In-One
 
What about config file for plugin?

WoW I tried and found bugs :/ When I enable autojoin and teamchange Im forced to the other team but I get no menu and I cant join spec. in that case. team_limit 0 blocks using that team not> NOLIMIT and with team limit you cant join spectator, it does nothing when you select spectator. And also that weird bug made players go into spec. and being spawn like that, couldn see them just heard them walking around...

Arkshine 05-30-2012 06:09

Re: Teams Manager All-In-One
 
Approved.

kp3t3h 05-30-2012 09:28

Re: Teams Manager All-In-One
 
exolent, you are always making great plugins, thanks for this.

though is there any way to make it, once player or admin chooses team it gives a random or a defined class/model, and not allowing him to choose a model
so choose team, and immediately give him the class

IbaneZ 06-18-2012 18:04

Re: Teams Manager All-In-One
 
Hey Exolent, could you please add support for the following module again:

http://forums.alliedmods.net/showthread.php?t=163555

Would be greatly appreciated.

Thanks

hatch 07-14-2012 14:13

Re: Teams Manager All-In-One
 
first off thanks for all the plugins exolent. very good work!

will this work with surf maps such as surf_seasons where only like 2 or 3 people can join and everyone else stays in spec and it does not allow them to even select a team. i want them all to be able to join and be able to surf.

if this plugin will work for those type of maps, would someone mind telling me what cvar variables i shud use to make it work properly. thanks!

duduqaz 07-16-2012 11:41

Re: Teams Manager All-In-One
 
to perform "cvar" with the startup of the server, I can create a "teammanager.cfg" inside the folder "configs" that will work?

Mr..Bean 07-18-2012 08:24

Re: Teams Manager All-In-One
 
Op might want to help me :- https://forums.alliedmods.net/showth...32#post1752932

Gradjevinac 07-27-2012 17:59

Re: Teams Manager All-In-One
 
1. Where should i put this cvars
team_immunity
team_autojoin_team
team_ratio_t
etc... ?
Just to copy them in server cfg?

2. And if i have ptb.amxx should i turn it OFF?

3. With this plugin running, are these cvars in server cfg allright???
mp_limitteams 0
mp_autoteambalance 0

Thank you for reply

C1PA 11-02-2012 07:26

Re: Teams Manager All-In-One
 
Can you add

bot_autojoin_team <0/1/2/5/6>
- Team for bots to auto-join
- 0 = Disabled
- 1 = Terrorists
- 2 = Counter-Terrorists
- 5 = Random (Terrorist or Counter-Terrorist)
- Default: 0

Ownedbyanub 01-30-2013 20:50

Re: Teams Manager All-In-One
 
Hey guys, i have a little truble with a plugin.

When i set team balance into 2, which should make it able to switch players, well.. it doesnt do anything.. what am i missing?

also when i wanna spectate, im frozen into the locked observerzones the map has... i cant go free move or first person or anything... what am i doing wrong?

roadapathy 02-21-2013 23:52

Re: Teams Manager All-In-One
 
Quote:

Originally Posted by C1PA (Post 1830991)
Can you add

bot_autojoin_team <0/1/2/5/6>
- Team for bots to auto-join
- 0 = Disabled
- 1 = Terrorists
- 2 = Counter-Terrorists
- 5 = Random (Terrorist or Counter-Terrorist)
- Default: 0



AGREED!!! Please add these features so we can run this plugin as BOT VS HUMAN!! That would be total awesomeness!

yokomo 02-22-2013 02:26

Re: Teams Manager All-In-One
 
Quote:

Originally Posted by roadapathy (Post 1899343)
AGREED!!! Please add these features so we can run this plugin as BOT VS HUMAN!! That would be total awesomeness!

I believe there already build-in team manager on bot code. Just set the right config.

POD-BOT:
Code:

# Changing the setting below forces bots joining to certain team.
# Useful if You want to have always bots in one team against humans.
# Argument values: "ANY", "T", "CT". Default is "ANY".
pb_bot_join_team "ANY"

CSBOT/CZBOT:
Code:

bot_join_team "any" //t - Terrorist | ct - Counter-Terrorist

wAyz 03-03-2013 17:39

Re: Teams Manager All-In-One
 
I really like this plugin, but I found one bug in combination with Galileo 1.1.290.
Always when I start a vote manually, a player dies (immediately after he voted).
I tried it about 6 times in a row with 5 players, without this Team Manager it worked 3x times without problems. Any Ideas how to fix it?


All times are GMT -4. The time now is 12:52.

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