This script was designed as a tool for quickly starting clan based matches. Two options are offered; auto-select in which the largest teams are deployed such that the game will remain balanced, and manual-select in which the user can select who exactly will play from either clan via the included GUI menu - absolutely no unspectating and team switching needed (not even for yourself). If you have any suggestion as to how this script can be improved, or any comments in general, please don't hesitate to make a post.
The GUI is bound to key "M" by default, this can easily be changed to the user's liking.
Special Thanks: RaZgRiZ for his support in the construction and optimization of many of the 'Miscellaneous Functions".
Note: Some server mods require team persisting (HopMod - #persist 1, XSBS - #persistteam on) to avoid shuffling of teams after each map change; make sure that persistent teams are enabled before starting a clanwar (with or without this script).
Changes/Updates:
(9/14/2011) v1.0 - Initial release.
(9/16/2011) v1.1 - Minor bug fixes, eliminated the risk of a player connecting in the middle of clanwar setup and causing problems.
(9/21/2011) v1.2 - Fixed the inputted mode checker (cw_ismodevalid) and made some other small improvements.
(9/28/2011) v1.3 - Dramatically improved the mode checker (cw_ismodevalid).
(10/2/2011) v1.4 - Now you are able to start a clanwar using the manual option even if there is a client that is a member of both clans. Other small fixes.
(10/2/2011) v1.5 - Changes to the GUI, overall layout is still the same, however.
(10/3/2011) v1.6 - In manual mode, you can no longer select the same client in both clan lists (eliminating the chance of doing so accidentally).
(10/11/2011) v1.7 - Typo fixes and other small improvements.
(10/15/2011) v1.8 - Improvements to the clan lists; now if there are two people with the same name, their client numbers will appear in purple exactly like what can be seen in the normal scoreboard. Also, masters/admins will be colored in green/orange.
(10/16/2011) v1.9 - Bug fixes.
(10/16/2011) v2.0 - Major enhancements to the code.