Raised This Month: $12 Target: $400
 3% 

Tag Protection


Post New Thread Reply   
 
Thread Tools Display Modes
Author
InstantDeath
Senior Member
Join Date: Mar 2007
Plugin ID:
626
Plugin Version:
1.21
Plugin Category:
Admin Commands
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    10 
    Plugin Description:
    A small simple plugin that allows only certain people to wear a specific tag.
    Old 11-03-2008 , 01:56   Tag Protection
    Reply With Quote #1

    Tag Protection
    A small simple plugin that allows only certain people to wear a specific tag. or use it to keep clans that you don't want on your server out.


    Current Features:
    • Allows only people with the Admflag_custom1 flag (and people with root access) to wear a protected clan tag
    • In-game Admin control, add and remove tags from in game, with the option to kick or ban offenders
    • a kick time limit, to give offenders a chance to remove the offensive tag

    CVARS:

    sm_tagcfg "configs/taglist.cfg" File to load and save tags.
    sm_tagwarntime "60.0" Time in seconds to warn player that he has an invalid tag


    Admin Cmds:

    sm_addtag Add tags to the list. Usage: sm_addtag <tag> (time for ban, -1 for kick)
    sm_removetag Removes the specified tag from the list. Usage: sm_removetag <tag>


    Changelog:
    1.0
    -Initial Release
    1.1
    -fixed decimals from displaying on countdown
    1.2
    -fixed: Plugin was calling TagCheckChange(client) sometimes too early.
    1.21
    • fixed: ban function was sending the incorrect format parameter for the time.

    Requires:
    Sourcemod
    version 1.0.4 or later.


    Upcoming Features:

    Suggest one!


    Installation:
    • Copy tagprotection.smx to addons/sourcemod/plugins
    • Copy taglist.cfg to addons/sourcemod/configs
    Attached Files
    File Type: cfg taglist.cfg (94 Bytes, 4428 views)
    File Type: sp Get Plugin or Get Source (tagprotection.sp - 5833 views - 9.9 KB)
    __________________

    Last edited by InstantDeath; 11-17-2008 at 00:41.
    InstantDeath is offline
    OranjeHazelnoot
    Junior Member
    Join Date: Nov 2008
    Old 11-05-2008 , 13:06   Re: Tag Protection
    Reply With Quote #2

    Hi, thx for the plugin, but can u describe how and where i can set the clantag which is allowed and where i put the members who are allowed to wear it.
    OranjeHazelnoot is offline
    Lebson506th
    Veteran Member
    Join Date: Jul 2008
    Old 11-05-2008 , 13:41   Re: Tag Protection
    Reply With Quote #3

    Quote:
    Allows only people with the Admflag_custom1 flag (and people with root access) to wear a protected clan tag
    And you put the tags in the taglist.cfg
    __________________
    My Plugins
    Spray Tracer by Nican, maintained by me
    Simple TK Manager
    DoD:S Admin Weapons

    Links
    Resistance and Liberation (A HL2 Multiplayer Modification)
    Lebson506th is offline
    InstantDeath
    Senior Member
    Join Date: Mar 2007
    Old 11-05-2008 , 14:04   Re: Tag Protection
    Reply With Quote #4

    heres an example.

    say you want to add the tag "[1337]"
    and you dont want to ban the offenders, just kick.

    all you would do is:
    Code:
    "Tag Protection"
    {
        "[SUCK]"
        {
            "time"        "-1"
        }
        "[myg0t]"
        {
            "time"        "0"
        }
        "[1337]"
        {
            "time"        "-1"
        }
    }
    now to actually have the person protected, you need to give the person the admin flag custom1.
    or you can create a admin group that only has the admin flag custom1.

    as i said before, people with root access are also immune to kick or ban.
    __________________

    Last edited by InstantDeath; 11-05-2008 at 14:08.
    InstantDeath is offline
    OranjeHazelnoot
    Junior Member
    Join Date: Nov 2008
    Old 11-05-2008 , 14:26   Re: Tag Protection
    Reply With Quote #5

    So i have to change the admin_groups.cfg?

    "Admin"
    {
    "flags" "abcdefjko"
    }

    is this right? This will allow all Admins to wear any TAG on the taglist.cfg without beeing kicked?

    /**
    * Custom flags can be used by plugins, but they can also be used to
    * for you to expand on the previous groups, using Overrides.
    */

    "custom1" "o"
    OranjeHazelnoot is offline
    Lebson506th
    Veteran Member
    Join Date: Jul 2008
    Old 11-05-2008 , 14:57   Re: Tag Protection
    Reply With Quote #6

    yes
    __________________
    My Plugins
    Spray Tracer by Nican, maintained by me
    Simple TK Manager
    DoD:S Admin Weapons

    Links
    Resistance and Liberation (A HL2 Multiplayer Modification)
    Lebson506th is offline
    OranjeHazelnoot
    Junior Member
    Join Date: Nov 2008
    Old 11-05-2008 , 15:34   Re: Tag Protection
    Reply With Quote #7

    Yay, its working on my HL2DM Server...

    thx very much
    OranjeHazelnoot is offline
    violentcrimes
    Senior Member
    Join Date: Nov 2006
    Old 11-06-2008 , 03:06   Re: Tag Protection
    Reply With Quote #8

    does this work for tf2/orange box?
    __________________
    violentcrimes is offline
    OranjeHazelnoot
    Junior Member
    Join Date: Nov 2008
    Old 11-06-2008 , 04:35   Re: Tag Protection
    Reply With Quote #9

    Dont tested it on TF2 servers yet, but maybe i know it in next days
    OranjeHazelnoot is offline
    OranjeHazelnoot
    Junior Member
    Join Date: Nov 2008
    Old 11-06-2008 , 11:14   Re: Tag Protection
    Reply With Quote #10

    btw, it is possible to change the color from "You are not alowed to wear the [xyz] Tag"

    atm its just orange and you may not notice it in the first moment because there are also other orange messages there. Only the following time messages are green and good to see. Maybe all messages in red would be better

    also the time which is shown in green shows sometimes "15.00000000000" seconds and then "10 seconds"

    maybe i make a mistake but it seems that the bantime is not working. i can reconnect just after been kicked

    "[1337]"
    {
    "time" "60"
    }

    Last edited by OranjeHazelnoot; 11-06-2008 at 11:27.
    OranjeHazelnoot 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 05:14.


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