Author Topic: ClanTagChanger  (Read 3735 times)

Forgot to change your clan tag before you opened up your server? Want to make your font big to announce something? Well, you can do all of this with this clan tag changer!

The previous one was banned (from RTB) and I don't know why, I assume it was spammable.

Mine is Admin-Only, so you can't let those idiots spam up your server!

Download

/prefix to change your prefix, and /suffix to change your suffix.


I don't have a non-admin only script, so I guess if you really want it PM me.

Credits
Quark - Helping me learn TorqueScript/helping me make the script
Funnelcakes - Making the script


Also, this is my first script.
« Last Edit: January 25, 2011, 11:07:11 PM by Funnelcakes »

Firefox can't find the server at www.[http.com.
Download link for those who want:
www.mediafire.com/?kbq9dt32z4k3gnm

Firefox can't find the server at www.[http.com.
I just edited it because I screwed up, try again?

I find this pointless for 2 reasons.

1. Not all people are in clans (like meh)

2. How often is someone gona switch clans?

I just edited it because I screwed up, try again?
Nope.
If you just paste the link it'll automatically turn into a link.
Also, filter ML tags, and add flood protection.

Uhm okay there we go, I always get confused when doing links.

Uhm okay there we go, I always get confused when doing links.
Filter ML tags, and add flood protection.

filter ML tags and add flood protection
I have know idea how to add flood protection, and what are ML tags?

I have know idea how to add flood protection, and what are ML tags?
StripMLControlChars()

StripMLControlChars()
Seeing how the entire add-on is all of 8 lines of code I can pretty much edit and post the script here:
Code: [Select]
function servercmdprefix(%client, %newprefix, %newprefix2, %newprefix3)
{
   if(%client.isAdmin)
   {
       %prefix = StripMLControlChars(trim(%newprefix SPC %newprefix2 SPC %newprefix3));
       %client.clanprefix = %prefix;
   }
}

function servercmdsuffix(%client, %newsuffix, %newsuffix2, %newsuffix3)
{
   if(%client.isAdmin)
   {
       %prefix = StripMLControlChars(trim(%newsuffix SPC %newsuffix2 SPC %newsuffix3));
       %client.clansuffix = %prefix;
   }
}
There ya go, that should work.

So what does this do exactly?

This is abusable someone can change your clan tags to Butt face or gay fish
or Idi ot.

This is abusable someone can change your clan tags to Butt face or gay fish
or Idi ot.
No, you change your own clantags. It's admin only, though.

Sara knows a console command to do this without this mod. Hmm.

Sara knows a console command to do this without this mod. Hmm.
It's findclientbyname("name").clansuffix/prefix = ("newprefix");
But typing /prefix or /suffix is a lot easier than that.