[L4D & L4D2] Switch Players
2 Attachment(s)
This plugin allows any admin with Kick permissions to switch player's teams at will.
A new option will be added to the player's menu. (It depends on AdminMenu). To install, copy the l4dswitchplayers.smx file to the sourcemod/plugins folder, and the l4dswitchplayers.txt file to the sourcemod/gamedata folder, and then restart your server. The SDK calls to correctly switch players to the Survivor's team were taken from the L4DUnscrambler plugin made by Fyren (http://forums.alliedmods.net/showthread.php?p=730278). I used them as he suggested in another post. As you should know by now, Valve restricted team switchs to 1 per map, and also you can't switch while people are still connecting. With this plugin you will be able to switch yourself or any other player to any team (spectators, survivors or infected). Changelog: 1.0: - Initial release 1.1: - Added a validation to check if target team is already full. 1.2: - Fixed some issues with the team full check function. - Added cvar to bypass team full check (l4dswitch_checkteams). Default is 1. Change to 0 to disable it. - Added new "Swap players" option to player's menu. This will allow you to immediately switch 2 players to each other's team. 1.2.1: - Added public cvar. 1.3: - Fixed plubic cvar to disable check of full teams. - Added validations to prevent log errors when a player leaves the game before it gets switched/swapped. 1.4: - Added support for L4D2. Thanks to AtomicStryker for providing updated signatures. |
Re: [L4D] Switch Players
Thanks, i'll give it a shot and report back ;D
|
Re: [L4D] Switch Players
Quote:
|
Re: [L4D] Switch Players
Ok Thanks, i updated it. It works like a charm man. Thanks!
|
Re: [L4D] Switch Players
hey i was waiting for that nice !!
|
Re: [L4D] Switch Players
Hi
Quote:
In fact, nothing happened when I hit "1" (to open the player's menu) I guess my adminmenu_cfgs.txt is not configured... I have only that: Code:
Configs |
Re: [L4D] Switch Players
you should have smth.
It isn't related to admin_menu_cfgs.txt. |
Re: [L4D] Switch Players
Quote:
|
Re: [L4D] Switch Players
You might want to make sure that the teams aren't full before trying to switch a player.
|
Re: [L4D] Switch Players
Quote:
You're right. I'll add the validation. |
All times are GMT -4. The time now is 09:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.