TeamSwitch
4 Attachment(s)
This is a fully mod-independent team switching plugin, which gives an admin the ability to switch players to the opposite team either immediately, when they die, or at the end of the round (where appropriate).
Players can also be switched to spectators. TeamSwitch detects which mod it is being run on at startup and configures itself accordingly. In CS:Source, the cstrike extension's function is being used, so the players don't die and don't have to select their model again. In all other mods, the SourceMod API's function is used instead, so players will die if they aren't dead when switched. If a dead player is chosen to be switched after death, they will be switched immediately. The Admin menu looks like this: http://diesundas.funzt-halt.net/team...on2_v50000.jpg http://diesundas.funzt-halt.net/team...on2_v50001.jpg When selecting "On Death" or "On Round end", the menu will show a flag for players who will be switched, like so: http://diesundas.funzt-halt.net/team...on2_v50002.jpg http://diesundas.funzt-halt.net/team...on2_v50003.jpg The team names will be displayed correctly for each mod, e.g. in TF2 it's "Red" and "Blue". If you don't like menus, you can also use these commands:
Note: Various people have made additions to this plugin and posted them in this thread, e.g. changing player models in CS:S or admin log functionality. Changes: 1.3:
MGee |
Re: TeamSwitch
Great, the other team switch plugin is a little bugy but works. Can you add a scramble based on players scores and such. Like mp_scrambleteams but scrambles players based on scores to even the teams up a bit so there isnt one good team?
|
Re: TeamSwitch
I've seen the other plugin, but when I looked at the source code trying to figure out what exactly is different in the cstrike edition, I soon gave up because the source code is unreadable.
That's why I've made my own, mod-independent thing, so I don't have to worry about having different plugins on my servers (I'm running 4 different mods, so...) As for the srambling stuff: I've thought about it, but I'm not quite sure what's the best way to do it algorithmically. Once I found a good algo, I'll create a new plugin that does it. :) |
Re: TeamSwitch
This is working great! thanks MistaGee!
|
Re: TeamSwitch
thx for copying the idea and writing a plugin that do exactly the same like my team switch plugin
http://forums.alliedmods.net/showthread.php?p=549446 |
Re: TeamSwitch
This plugin doesnt quite work right in TF2. When I ask it to switch a player it switches me instead on the menu lol... I dont know whats wrong.
|
Re: TeamSwitch
Quote:
Quote:
Quote:
[edit] Sort-of-confirmed, the menu indeed acts a bit weird when there's more than one player in the game. I'll see what I can do. |
Re: TeamSwitch
you have a variable on a wrong position contact me than you can use code sniplets to fix it
|
Re: TeamSwitch
The menu was displayed at the wrong item index when being re-displayed, which caused the behavior I noticed when testing.
I've uploaded a fixed version. |
Re: TeamSwitch
I actually just noticed a bug with the command:
teamswitch It moves me to the opposite team BUT I still have the previous team skin. ex. I'm a ct, I teamswitch myself during the round to T but players notice I still have a ct skin even though the scoreboard shows me as a T. |
All times are GMT -4. The time now is 19:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.