function changeclantag(%client,%target,%clantag)
{
if(%client.isAdmin || %client.isSuperAdmin)
{
%target = findclientbyname(%target);
if(isObject(%target))
{
%target.clanprefix = %clantag;
$clantags[%target.bl_id] = %clantag;
export("$clantags*","config/server/clantags.cs");
}
else
messageclient(%client,'',"\c6No user was found by that name.");
}
else
messageclient(%client,'',"\c6You must be admin to change other people's clan tags.");
}
That's your changing function code.
package clantagchanger
{
function GameConnection::AutoAdminCheck(%client)
{
Parent::AutoAdminCheck(%client);
if(strlen($clantags[%client.bl_id]) > 0)
%client.clanprefix = $clantags[%client.bl_id];
}
};
activatepackage(clantagchanger);
And that changes people tags to what you set when they join.
I just typed this up now.
Have no idea if it works.
And sorry for the lack of indentation, these forums won't let me do it.