What this does it sets your clan prefix. This is my first script so i want to know if you can see any errors. It warks but i just want to know if there is any errors. Please note this is my first script.
registerOutputEvent(Player, "SetTag", "list NONE 1 ChatMessage 2 CenterPrint 3 BottomPrint 4\tint 1 9 3\tstring " @ $pref::server::maxChatLen / 2 SPC $pref::server::maxChatLen);
function player::setTag(%this, %arg0, %arg1, %arg2, %client)
{
if(!isObject(%this))
{
return;
}
%newInput = strReplace(%arg2, "%1", %client.clanprefix);
if(%newInput $= %arg2)
{
%newInput = %newInput @ %client.clanprefix = %newinput ;
}
%this.clanprefix(%newinput);
if(isObject(%client) && isObject(%this.client) && %this.client == %client)
{
if(%arg0 == 1)
{
centerPrint(%client, "", %arg1);
}
if(%arg0 == 2)
{
messageClient(%client, '', "\c2Your player Tag has been set to \c6'" @ %newInput @ "'");
}
if(%arg0 == 3)
{
centerPrint(%client, "\c2Your player Tag has been set to \c6'" @ %newInput @ "'", %arg1);
}
if(%arg0 == 4)
{
bottomPrint(%client, "\c2Your player Tag has been set to \c6'" @ %newInput @ "'", %arg1);
}
}
}