AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:S] TagBlocker [Reloaded] (V1.2.7, 03.10.2020) (https://forums.alliedmods.net/showthread.php?t=176967)

Impact123 01-25-2012 15:14

[CS:S] TagBlocker [Reloaded] (V1.2.7, 03.10.2020)
 
4 Attachment(s)
I saw this unapproved plugin by bl4nk, and thought why should i not overhaul it.
This plugin allows you to add as many tags as you want to an list and block them, it is also possible to only allow the tags you have specified to be allowed with an invert cvar.
It is also possible to add, view and delete (also with regex #.number) tags from the console.

I do not plan to support other games than CS:S, so save your time by not asking me for it.


Cvars:

  • sm_tagblocker_adminimmunity
    • Whether or not admins should be immune to tagstripping
  • sm_tagblocker_casesensitive
    • Whether or not searches to tagstripping should be case sensitive
  • sm_tagblocker_invert
    • 0 = All players wearing a tag in the list gets them removed 1 = All players don't wearing one of the tags in the list gets them removed
  • sm_tagblocker_changetag
    • Which tag gets set on players who are not allowed to wear their own
  • sm_tagblocker_changetag_empty
    • Whether or not empty tags will be replaced by changetag (has no effect if changetag isn't set)
  • sm_tagblocker_version
    • TagBlocker Version (Not changeable)


Commands: (These are serverside)
  • sm_tagblocker_addtag
    • Adds a tag to the list
  • sm_tagblocker_deltag
    • Removes a tag from the list (Also with regex #.number)
  • sm_tagblocker_listtags
    • Lists all tags


Installation:

  • Put "tagblocker.smx" in your "../addons/sourcemod/plugins" directory.
  • If you update from versions before 1.2.5 delete the plugin.tagblocker.cfg from ../cfg/sourcemod/
  • Add the plugin.taglocker.cfg in your "../cfg/sourcemod" folder or load the plugin and wait till the plugin creates it.
  • Load the plugin
  • Edit the config to your purposes.
  • Have fun


Requirements
  • Optional: Updater
  • If you want to compile the plugin yourself, you need to obtain the AutoExecConfig includefile


Possibly useful Informations:
  1. You must have at least SourceMod Version 1.4.0
  2. This plugin makes use of the command override sm_tagblocker_immune, look here for informations on how you can use this.
  3. Tags can be up to 31 characters (avoid special characters)
  4. The Cvar sm_tagblocker_adminflag cannot be blank.
  5. While adding a new tag, there is no case sensitive check, only the tagcheck itself is.
  6. Plugin will not compile on the forums due the dependence of AutoExecConfig
  7. The plugin will create an configfile named "tagblocker_tags.cfg" in "../addons/sourcemod/config"


CHANGELOG



Credits:
bl4nk with his TagBlock for the Idea
GoD-Tony with his Country Clan Tag where i borrowed the idea for the lateload function
stonedegg for a lot of critique and proposals


Links:
Servers with this plugin

stonedegg 04-02-2012 06:18

Re: [CS:S] TagBlocker [Reloaded] (V1.1.0, 2012-25-01)
 
Todo:
Request something

So here it is:
It maybe has nothing to do with tag blocking, but what about forcing every non-admin to have the same tag?

stonedegg 04-02-2012 12:17

Re: [CS:S] TagBlocker [Reloaded] (V1.1.0, 2012-25-01)
 
Nice, I'm gonna test it as soon as I can. The idea with the cvar was that what I was thinking about.
So when sm_tagblocker_changetag is set to "Clan", sm_tagblocker_adminflag is set to "a" and sm_tagblocker_adminimmunity is set to "1", every player except the admins with flag "a" will have the Clantag "Clan", right?

Does it reload automatically? So when I already have sm_tagblocker_changetag "Clan" and I'm changing it to sm_tagblocker_changetag "Clan2", will the players get "Clan2" immediatly or do i need to reload plugin or players need to reconnect? If not you maybe could add automatic reload or a reload cvar like sm_tagblocker_reload.

stonedegg 04-04-2012 05:57

Re: [CS:S] TagBlocker [Reloaded] (V1.1.0, 2012-25-01)
 
hmm the changetag is somehow not working for me. The tag doesnt get changed, i respawned, retried and reloaded plugins but nothing happens. Maybe the admin immunity is not working properly? I set it to 0. But I can't test it atm with other player because there is no one ^^

Edit: btw, Sourcemod is unable to open the file if it's named tagblocker_1.2.1 ^^

Edit2: Other players Tag doesnt get changed too.

Impact123 04-04-2012 07:14

Re: [CS:S] TagBlocker [Reloaded] (V1.1.0, 2012-25-01)
 
Mh, i tested it with these non-default cvars, and it worked.
Also i suggest you add a tag to the list.
Code:

sm_tagblocker_adminimmunity "0"
sm_tagblocker_invert "1"
sm_tagblocker_changetag "Def"

Can i see your config?

Quote:

Sourcemod is unable to open the file if it's named tagblocker_1.2.1 ^^
I also do not have this problem, but you are free to rename it to whatever works for you.

Yours sincerely
Impact

stonedegg 04-04-2012 10:57

Re: [CS:S] TagBlocker [Reloaded] (V1.1.0, 2012-25-01)
 
Okay, maybe it was because I didn't add a tag to the list and I left sm_tagblocker_invert default.
But I had another problem with this plugin, it crashed my server when some non-admin joined.
(It was not the tpto plugin, it was this, maybe you read my post in that thread.)

I can't give you my config now, i don't have the files here.

Quote:

Quote:
Sourcemod is unable to open the file if it's named tagblocker_1.2.1 ^^
I also do not have this problem, but you are free to rename it to whatever works for you.
That's weird, Console told me SourceMod is unable to open file "...", and yes, I renamed it :P

Impact123 04-04-2012 11:18

Re: [CS:S] TagBlocker [Reloaded] (V1.1.0, 2012-25-01)
 
Quote:

Originally Posted by stonedegg (Post 1681760)
But I had another problem with this plugin, it crashed my server when some non-admin joined.

Im sorry, i cannot reproduce this, maybe you can send me your config and i'll try again.
Try to disable all plugins, then activate this one and try again, it should not crash, if it does contact me and i look what i can do.

Quote:

Originally Posted by stonedegg (Post 1681760)
That's weird, Console told me SourceMod is unable to open file "...", and yes, I renamed it :P

How did you load the plugin?

Yours sincerely
Impact

Impact123 08-06-2012 05:15

Re: [CS:S] TagBlocker [Reloaded] (V1.2.2, 06.08.2012)
 
Update v1.2.2
Code:

* 06.08.2012 - v1.2.2
- Added support for updater
- Fixed the IsClientValid Stock
- Added a recheck if you add a tag

Please be sure that you remove the old plugin (tagblocker_x.y.z.smx), the plugin will only be named tagblocker from now on

Yours sincerely
Impact

Impact123 08-30-2012 04:54

Re: [CS:S] TagBlocker [Reloaded] (V1.2.3, 06.08.2012)
 
Update v1.2.3
Code:

* 30.08.2012 - v1.2.3
- Fixed a bug where people without a clantag weren't changed even if a changetag is set
- Removed 2 Versionflags
- Removed the replication of the version

Yours sincerely
Impact

Impact123 09-21-2012 11:05

Re: [CS:S] TagBlocker [Reloaded] (V1.2.4, 21.09.2012)
 
Update v1.2.4
Code:

* 21.09.2012 - v1.2.4
- Removed the second cvarchangedcallback and added all in one
- Added if statements rather than just collect all cvarvalues again in convarhook
- Added more convars to the instant check, if they change clients will be rechecked
- Fixed that changetag wasnt read out OnPluginStart
- Fixed that adminflag wasnt checked OnPluginStart

Yours sincerely
Impact


All times are GMT -4. The time now is 07:38.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.