AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Request: Name Tag Stripper (https://forums.alliedmods.net/showthread.php?t=49671)

IdiotSavant 01-10-2007 15:59

Request: Name Tag Stripper
 
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

kow75 01-10-2007 16:05

Re: Request: Name Tag Stripper
 
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.

IdiotSavant 01-10-2007 18:39

Re: Request: Name Tag Stripper
 
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

kow75 01-10-2007 19:14

Re: Request: Name Tag Stripper
 
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.

organizedKaoS 01-11-2007 01:43

Re: Request: Name Tag Stripper
 
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.

IdiotSavant 01-11-2007 19:05

Re: Request: Name Tag Stripper
 
Thanks for trying organizedKaoS but it didn't work. =(

hlstriker 01-11-2007 21:52

Re: Request: Name Tag Stripper
 
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; }

IdiotSavant 01-12-2007 15:01

Re: Request: Name Tag Stripper
 
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

kmal2t 01-12-2007 19:40

Re: Request: Name Tag Stripper
 
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.


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

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