Raised This Month: $7 Target: $400
 1% 

[CS:S] TagBlocker [Reloaded] (V1.2.7, 03.10.2020)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Plugin ID:
2787
Plugin Version:
1.2.7
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Blocks all clan tags from a list, or only allow tags from a list.
    Old 01-25-2012 , 15:14   [CS:S] TagBlocker [Reloaded] (V1.2.7, 03.10.2020)
    Reply With Quote #1

    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
    Attached Files
    File Type: cfg plugin.tagblocker.cfg (1,007 Bytes, 647 views)
    File Type: cfg tagblocker_tags.cfg (105 Bytes, 659 views)
    File Type: smx tagblocker.smx (11.3 KB, 174 views)
    File Type: sp Get Plugin or Get Source (tagblocker.sp - 196 views - 10.1 KB)
    __________________

    Last edited by Impact123; 10-02-2020 at 23:51. Reason: Update v1.2.5
    Impact123 is offline
    stonedegg
    Senior Member
    Join Date: Nov 2011
    Location: de_dust2
    Old 04-02-2012 , 06:18   Re: [CS:S] TagBlocker [Reloaded] (V1.1.0, 2012-25-01)
    Reply With Quote #2

    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 is offline
    stonedegg
    Senior Member
    Join Date: Nov 2011
    Location: de_dust2
    Old 04-02-2012 , 12:17   Re: [CS:S] TagBlocker [Reloaded] (V1.1.0, 2012-25-01)
    Reply With Quote #3

    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.

    Last edited by stonedegg; 04-02-2012 at 12:18.
    stonedegg is offline
    stonedegg
    Senior Member
    Join Date: Nov 2011
    Location: de_dust2
    Old 04-04-2012 , 05:57   Re: [CS:S] TagBlocker [Reloaded] (V1.1.0, 2012-25-01)
    Reply With Quote #4

    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.

    Last edited by stonedegg; 04-04-2012 at 06:07.
    stonedegg is offline
    Impact123
    Veteran Member
    Join Date: Oct 2011
    Location: Germany
    Old 04-04-2012 , 07:14   Re: [CS:S] TagBlocker [Reloaded] (V1.1.0, 2012-25-01)
    Reply With Quote #5

    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
    __________________

    Last edited by Impact123; 04-04-2012 at 07:16.
    Impact123 is offline
    stonedegg
    Senior Member
    Join Date: Nov 2011
    Location: de_dust2
    Old 04-04-2012 , 10:57   Re: [CS:S] TagBlocker [Reloaded] (V1.1.0, 2012-25-01)
    Reply With Quote #6

    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
    stonedegg is offline
    Impact123
    Veteran Member
    Join Date: Oct 2011
    Location: Germany
    Old 04-04-2012 , 11:18   Re: [CS:S] TagBlocker [Reloaded] (V1.1.0, 2012-25-01)
    Reply With Quote #7

    Quote:
    Originally Posted by stonedegg View Post
    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 View Post
    That's weird, Console told me SourceMod is unable to open file "...", and yes, I renamed it
    How did you load the plugin?

    Yours sincerely
    Impact
    __________________

    Last edited by Impact123; 04-04-2012 at 11:20.
    Impact123 is offline
    Impact123
    Veteran Member
    Join Date: Oct 2011
    Location: Germany
    Old 08-06-2012 , 05:15   Re: [CS:S] TagBlocker [Reloaded] (V1.2.2, 06.08.2012)
    Reply With Quote #8

    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 is offline
    Impact123
    Veteran Member
    Join Date: Oct 2011
    Location: Germany
    Old 08-30-2012 , 04:54   Re: [CS:S] TagBlocker [Reloaded] (V1.2.3, 06.08.2012)
    Reply With Quote #9

    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 is offline
    Impact123
    Veteran Member
    Join Date: Oct 2011
    Location: Germany
    Old 09-21-2012 , 11:05   Re: [CS:S] TagBlocker [Reloaded] (V1.2.4, 21.09.2012)
    Reply With Quote #10

    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
    __________________
    Impact123 is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 22:19.


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