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

Admin Tag Enforcement/Protection 2


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose       
pizzahut
Senior Member
Join Date: Oct 2004
Old 08-21-2007 , 19:13   Admin Tag Enforcement/Protection 2
Reply With Quote #1

This is an update of atambo's Admin Tag Enforcement/Protection.

Original description: This plugin will check if your server admins have your clan tag in their name. If they dont it will add it to their name (unless you have immunity). This plugin will also check and see if players without admin have the tag in their name. If they do it will remove it from their name. *No need to edit any config files*

Additionally the plugin changes the name even if a player has name change "disabled".

Cvars:
amx_tagprotect - 1 = on/0 = off
amx_taginfront - 1 = places tag in front of name/0 = places tag in back of name
amx_clantag - "your clan tag here"

Note:
You must define the amx_clantag cvar within your amxx.cfg. Example: amx_clantag "Pwnzors |"

Credits and history:

2004-11-06 Original plugin by BigBaller
http://forums.alliedmods.net/showthread.php?t=7390

2005-03-24 Several changes by me (pizzahut), most notably the removal of the tag including a case-insensitive delete function written from scratch.
http://forums.alliedmods.net/showthr...9250#post99250

2005-10-04 Cvars added by atambo.
http://forums.alliedmods.net/showthread.php?t=18901

2007-08-22 Added detection if a client has name change disabled, also using pcvars now. (pizzahut)

2007-09-05 Discovered how to change name even if client has it "disabled". Also fixed a minor bug introduced with the addition of cvars.
Attached Files
File Type: sma Get Plugin or Get Source (tagprotect2.sma - 1193 views - 1.7 KB)
__________________
My AMXX plugins (content date 2007-03-29, link check 2017-04-26)

Plugins for the Royston Vasey TFC server - These are UNSUPPORTED, except those which have been published at AMX Mod X.

Last edited by pizzahut; 09-06-2007 at 14:40. Reason: v2.1.5
pizzahut is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 08-21-2007 , 19:21   Re: Admin Tag Enforcement/Protection 2
Reply With Quote #2

Bout time one without a cfg file. The only thing I would like is a cvar (which i almost did to Atambos(yours)) to Enable/Disable the tag enforcement. (sometimes we need to Not wear our tags for particular reasons)

Also, prolly not gonna happen but in the cfg files, i use about 5 diff tags that are similar to mine that i dont allow. As in |AoC|, i dont want people screwing around and using AoC. So i wonder about using regex or something. I know thats a bit, but just what I have been thinking about

to u
__________________
bmann_420 is offline
Old 08-22-2007, 09:45
pizzahut
This message has been deleted by pizzahut.
phrozenglow
Junior Member
Join Date: Mar 2007
Old 08-23-2007 , 19:13   Re: Admin Tag Enforcement/Protection 2
Reply With Quote #3

okay i have two questions... first one is similar to bmann's but i was woundering if it would be possible to make this with more then one clantag... i share a server with another clan and that what that is for... and my other question is some of my members dont have admin... so is it possible to make it so that they have to ware the tag but other non admins... being pubbers... wouldnt be able to ware it....
phrozenglow is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 08-23-2007 , 23:11   Re: Admin Tag Enforcement/Protection 2
Reply With Quote #4

Then your gonna have to use one with a .cfg file. lol I dont really see any other way around that.
__________________
bmann_420 is offline
phrozenglow
Junior Member
Join Date: Mar 2007
Old 08-23-2007 , 23:57   Re: Admin Tag Enforcement/Protection 2
Reply With Quote #5

well i dont wanna make things complicated... :'( i dont wanna make ppl work more then they have to just for me
phrozenglow is offline
pizzahut
Senior Member
Join Date: Oct 2004
Old 08-24-2007 , 05:38   Re: Admin Tag Enforcement/Protection 2
Reply With Quote #6

bmann_420, there's a cvar amx_tagprotect which you can use, atambo already implemented it.

phrozenglow, if you want to try AMXX's built-in clan tag protection, put something like this in users.ini:

"[clan A]" "password X" "abcdefghijklmnopqrstu" "ab" ; member of clan A with admin
"[clan A]" "password Y" "z" "ab" ; member of clan A without admin
"[clan B]" "password Z" "abcdefghijklmnopqrstu" "ab" ; member of clan B with admin
"[clan B]" "password W" "z" "ab" ; member of clan B without admin

I'm not quite sure if it will work with two times the same clan tag but different access rights. If it doesn't work, then admins need to use a different tag, e.g.

"[clan A-a]"

Clan members need to put this into autoexec.cfg :

setinfo "_pw" "password X" (or one of the other passwords from above)

More info:

http://wiki.amxmodx.org/Adding_Admins_%28AMX_Mod_X%29
__________________
My AMXX plugins (content date 2007-03-29, link check 2017-04-26)

Plugins for the Royston Vasey TFC server - These are UNSUPPORTED, except those which have been published at AMX Mod X.

Last edited by pizzahut; 08-24-2007 at 05:59.
pizzahut is offline
phrozenglow
Junior Member
Join Date: Mar 2007
Old 08-24-2007 , 14:51   Re: Admin Tag Enforcement/Protection 2
Reply With Quote #7

would that also do the adding tag removing tag and what not or do i need this as well and use both?
phrozenglow is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 08-24-2007 , 16:37   Re: Admin Tag Enforcement/Protection 2
Reply With Quote #8

I see, now that i read the code i see it. I thought a cvar with that name would be to enable/disable the protection itself, not the forcing of the tag

@phrozenglow

I believe your particular reason is why they made the tag protectors with cfg files.
__________________
bmann_420 is offline
pizzahut
Senior Member
Join Date: Oct 2004
Old 08-24-2007 , 17:20   Re: Admin Tag Enforcement/Protection 2
Reply With Quote #9

Quote:
Originally Posted by phrozenglow View Post
would that also do the adding tag removing tag and what not or do i need this as well and use both?
AMXX's buit-in clan tag feature does not add a tag or remove it.
It kicks people who are trying to use one of the tags without the proper password.
__________________
My AMXX plugins (content date 2007-03-29, link check 2017-04-26)

Plugins for the Royston Vasey TFC server - These are UNSUPPORTED, except those which have been published at AMX Mod X.
pizzahut is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 08-24-2007 , 21:06   Re: Admin Tag Enforcement/Protection 2
Reply With Quote #10

okay,

amx_tagprotect 0 (should still protect your clan tag and not make the admins wear it?) Is kinda what I got from yea, but it doesnt seem to work like that. Anybody wears the tag with it at 0 and it forces the tag when set to 1. I dunno, kinda confused.
__________________
bmann_420 is offline
Reply



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 09:13.


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