Raised This Month: $ Target: $400
 0% 

Request: Name Tag Stripper


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
IdiotSavant
Senior Member
Join Date: Apr 2006
Old 01-10-2007 , 15:59   Request: Name Tag Stripper
Reply With Quote #1

What I want is a plugin that will strip a clan tag from a users name.

I have noticed tons of people with the [XXL] tag. Apparently they get that tag whenever they visit an [XXL] server. I want to be able to strip this from their name and leave their name as it was before they visited the [XXL] server.

The plugin should automatically check the name and remove the "[XXL] "
There is a space after the [XXL] that should be removed also.

The plugin should be able to allow removal of any tag at the beginning of a users name.

I searched for a plugin such as this and found none.

Thanks for your help.
IdiotSavant
IdiotSavant is offline
kow75
Member
Join Date: Oct 2006
Old 01-10-2007 , 16:05   Re: Request: Name Tag Stripper
Reply With Quote #2

there is one its called clan tag protector
http://forums.alliedmods.net/showthr...+tag+protector

you add your clan members to the list with steam id or name and any one that joins that isnt on the list gets kicked or it changes ther name auto maticly.
kow75 is offline
IdiotSavant
Senior Member
Join Date: Apr 2006
Old 01-10-2007 , 18:39   Re: Request: Name Tag Stripper
Reply With Quote #3

I saw that one. It does not do what I need.

I want it to strip every player including admins of the [XXL] tag.

This one comes close. But I can't get the thing to not add the tag to admins.
http://forums.alliedmods.net/showthread.php?t=18901
__________________
IdiotSavant
"Make something idiot proof and they just build a better Idiot."

Like GunGame? Visit www.gungame.org today!
Earn Admin just by playing at GunGame.Org Servers!

Come visit our GunGame.Org server at 174.34.146.107:27015
IdiotSavant is offline
kow75
Member
Join Date: Oct 2006
Old 01-10-2007 , 19:14   Re: Request: Name Tag Stripper
Reply With Quote #4

well with the origanal one id turn off the kick command tell it what my tag is and then dont ad any one. It should remove the tag. or you could see if you could do the same thing with the one you posted.

Thats what i would try.
kow75 is offline
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 01-11-2007 , 01:43   Re: Request: Name Tag Stripper
Reply With Quote #5

Code:
#include <amxmodx> #include <amxmisc> public plugin_init()     {     register_plugin("No [XXL]", "0.1a", "KaoS") } public client_authorized(id)     {       new name[32]     get_user_name(id, name, 31)     if(containi(name, "[XXL]") > -1)         {         replace(name, 31, "[XXL]", "")         client_cmd(id, "name %s", name)     }     return PLUGIN_CONTINUE }

Just a snippet from my custom ban and tag checker plugin.

My version loads tags and steamids from a seperate file and checks the players for banned id or name tags.
organizedKaoS is offline
IdiotSavant
Senior Member
Join Date: Apr 2006
Old 01-11-2007 , 19:05   Re: Request: Name Tag Stripper
Reply With Quote #6

Thanks for trying organizedKaoS but it didn't work. =(
__________________
IdiotSavant
"Make something idiot proof and they just build a better Idiot."

Like GunGame? Visit www.gungame.org today!
Earn Admin just by playing at GunGame.Org Servers!

Come visit our GunGame.Org server at 174.34.146.107:27015
IdiotSavant is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 01-11-2007 , 21:52   Re: Request: Name Tag Stripper
Reply With Quote #7

Here is this, it removes the [XXL] tag + the space after it. Already tested and works, just compile it.

Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN "XXL Tag Remover" #define VERSION "1.0" #define AUTHOR "hlstriker" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR); } public client_connect(id) {     checkName(id); } public checkName(id) {     new name[32], tagName[16], leftName[8], rightName[32];         tagName = "[XXL]"; // The tag to be removed     get_user_name(id, name, 31);         // Check to see if their name contains the tag.     if(!(containi(name, tagName) == -1)) {         // If their name contains the tag, remove it.         strbreak(name, leftName, 6, rightName, 31);                 // Now change their name to be tagless.         client_cmd(id, "name ^"%s^"", rightName);     }         return PLUGIN_CONTINUE; }
hlstriker is offline
IdiotSavant
Senior Member
Join Date: Apr 2006
Old 01-12-2007 , 15:01   Re: Request: Name Tag Stripper
Reply With Quote #8

Tested it and it did not work. I had them change name in game and also come in with the tag on. Nothing worked, it never got striped. It compiled without any problems and shows to be running in my amx_plugins list. I am running AMXMODX 1.75a.

Any ideas what I may be doing wrong?

Thanks for the help!
IdiotSavant
IdiotSavant is offline
Old 01-12-2007, 19:30
kmal2t
This message has been deleted by kmal2t.
kmal2t
BANNED
Join Date: Apr 2006
Old 01-12-2007 , 19:40   Re: Request: Name Tag Stripper
Reply With Quote #9

Speaking of this, what would be nice for pubscrims is if someone re-did this:

http://forums.alliedmods.net/showthread.php?p=232481

so that you don't have to use rcon or steamids so I could use part of someone's name to renick them.

Last edited by kmal2t; 01-12-2007 at 19:43.
kmal2t 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 16:05.


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