[CS:S/CS:GO] blockteam
2 Attachment(s)
BLOCKTEAM as made by potatoz, original by graffiti DESCRIPTION This plugin is based of Graffiti's "[CS:GO] Block Team for MG course maps" and simply promises to allow you to block entry into a specific team on a map-to-map basis. This is meant mostly for minigame-servers where you may have troubles with people in both teams but i'm sure you could find use for it elsewhere as well. If not set manually, this plugin will attempt to automatically block the team which has the least amount of spawn points. COMMANDS !blockteam <CT/T>- Add a team-block for current map to the config INSTALLATION - Put blockteam.smx in /addons/sourcemod/plugins - Put blockteam_config.cfg in addons/sourcemod/configs - Profit!!! NOTE Majority of the idea is thanks to Graffiti, i simply updated his already quite good plugin |
Re: [CS:S/CS:GO] blockteam
1 Attachment(s)
If you use teamchange-unlimited along with this, use this version of the plugin instead
EDIT: The updated version of the original plugin includes unlimited team-switches through all non-blocked teams, however, if you really prefer teamchange_unlimited, i've updated this plugin as well |
Re: [CS:S/CS:GO] blockteam
You can use "mp_humanteam any/t/ct" instead of hooking jointeam.
|
Re: [CS:S/CS:GO] blockteam
Quote:
Why use a plugin when you can use an already existing in-game cvar? Just use map configs plugin (which you're probably using already), and the cvar listed above. |
Re: [CS:S/CS:GO] blockteam
Quote:
EDIT: Done, the plugin is now way more simple, if you already have map configs i suggest you use yourself of the solution sneaK suggested. |
Re: [CS:S/CS:GO] blockteam
As far as i know, if you use the Team limit bypass made from Zephyrus https://forums.alliedmods.net/showthread.php?t=219812 people still will be abble to join to another team, and basically all servers use this, but i'll test with this plugin and check if it works correctly even using the Bypass plugin
|
Re: [CS:S/CS:GO] blockteam
1 Attachment(s)
This plugins was making doubled stings, so map into map and than "team_blocked". I made some changes to fix that. Also, I removed the IsMapConfigured bool, since the command itself doens't duplicate existing strings, but simply edits them and now you can change the allowed team more than once, if you're not using the plugin in a MG server. No need of a config, the plugin will auto generate it when you use it for the first time.
PHP Code:
|
Re: [CS:S/CS:GO] blockteam
Code has been updated to hopefully work better with some help from PinHeadi's snippet.
I've kept the IsMapConfigured and team_blocked parts, this is mostly to print some useful information if you type !blockteam without any arguments, however if you add arguments it will simply overwrite and replace the block. I also added a "jointeam"-listener in order to allow unlimited teamchanges through all non-blocked teams and to add an additional team-block in case the first one wouldn't work for any reason. EDIT: Just added an automatic team-block, the plugin basically tries to automatically block the team with the least amount of spawn points, if it can't do this however, it won't block anything unless you do it manually. It also only attempts to automatically block a team if you haven't already configured a specific team-block, this means you could easily overwrite the automatic team-block by adding a block manually. |
Re: [CS:S/CS:GO] blockteam
Quote:
|
Re: [CS:S/CS:GO] blockteam
Quote:
Yes, You should still use that version if you use teamchange_unlimited, however, i would recommend just using the main version of the plugin and disabling teamchange_unlimited as the main plugin allows for unlimited team-changes through all non-blocked teams just as teamchange_unlimited would. |
All times are GMT -4. The time now is 13:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.