Team Ban
2 Attachment(s)
This is a simple plugin to allow you to ban a player from teams, This is handy for dealing with trolls who abuse team mechanics, such as shooting all the T's on jailbreak, or not planting the bomb on CT
It uses client preferences for storage (so MySQL/sqlite), It should work on any mod (in theory), reply here if it doesn't work on your mod. Commands: sm_teamban <name|#userid> <team> - Bans a player from <team>. Example: sm_teamban Azelphur ct sm_teamunban <name|#userid> <team> - Unbans a player from <team>. Example: sm_teamunban Azelphur ct Cvars: sm_teamban_disable - Use this to disable the ability to ban people from certain teams, It's a bitmask. Each team has a number, for example on CS:S 1 is spectator, 2 is counter terrorist, 4 is terrorist, add the numbers together to disable. for example to disable banning from CT and T, 2+4 = 6, so sm_teamban_disable 6. or to disable spectator and terrorist, 1+4 = 5. I wrote this as a paid job for XenoGamers and they have kindly asked me to post the plugin and share it with everyone :) * Changelog * 0.3: Fixed missing translations Small optimization, switched to AddCommandListener() 0.2: Fixed error messages in sm_teamban and sm_teamunban |
Re: Team Ban
Finally, someone did this out of the goodness of their heart!
|
Re: Team Ban
Quote:
|
Re: Team Ban
Works great :)
Suggestions • Chat notification that you banned a player. - [SM] John banned Frank from the CT team! • Menu option to ban a player from the team with a reason. Team Ban - Ban a player -Unban a player When opened you can choose the player name and then a reason such as freekilling or excessive team stacking. • Logging |
Re: Team Ban
Quote:
Quote:
|
Re: Team Ban
It doesn't say anyone was banned from the ct team in chat. It only says they were unbanned.
Also when I type sm_teamban in console it interferes with the use of sm_ban. ] sm_teamban [SM] Usage: sm_ban <#userid|name> <team> |
Re: Team Ban
Quote:
http://dl.dropbox.com/u/3832397/scre...x105_scrot.png Quote:
Cosmetic issue, it doesn't interfere, I just copied the error message from sm_ban and forgot to change it xD, fixed now. |
Re: Team Ban
Azelphur, good job and thank you for posting yours. I believe there's more than 3 different SM team bans plugins now and this is the first that's become open source, congrats!
Do you know if xG had any errors with this? I didn't see a call to AreClientCookiesCached but maybe this isn't needed on a really fast server by the time the first respawn hits. |
Re: Team Ban
Quote:
You are correct, there are no calls to AreClientCookiesCached, If your MySQL server doesn't respond between OnClientAuthorized and join team (which is a good 5-10 seconds), your hard drive is probably failing or your MySQL server is on dialup in outer mongolia :P |
Re: Team Ban
Code:
L 02/09/2011 - 19:31:32: [SM] Plugin encountered error 4: Invalid parameter or parameter type |
All times are GMT -4. The time now is 00:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.