AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Tag Protection (https://forums.alliedmods.net/showthread.php?t=80020)

InstantDeath 11-03-2008 01:56

Tag Protection
 
3 Attachment(s)
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

OranjeHazelnoot 11-05-2008 13:06

Re: Tag Protection
 
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.

Lebson506th 11-05-2008 13:41

Re: Tag Protection
 
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

InstantDeath 11-05-2008 14:04

Re: Tag Protection
 
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.

OranjeHazelnoot 11-05-2008 14:26

Re: Tag Protection
 
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"

Lebson506th 11-05-2008 14:57

Re: Tag Protection
 
yes

OranjeHazelnoot 11-05-2008 15:34

Re: Tag Protection
 
Yay, its working on my HL2DM Server...

thx very much :D

violentcrimes 11-06-2008 03:06

Re: Tag Protection
 
does this work for tf2/orange box?

OranjeHazelnoot 11-06-2008 04:35

Re: Tag Protection
 
Dont tested it on TF2 servers yet, but maybe i know it in next days :wink:

OranjeHazelnoot 11-06-2008 11:14

Re: Tag Protection
 
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"
}


All times are GMT -4. The time now is 16:25.

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