Author Topic: Need help with adding clan suffix  (Read 1667 times)

onClientEnterGame is called when they first spawn, not when they join. You also need to parent the function or else people CAN'T first spawn. But yes, the code you have there will store the clanprefix and clansuffix fields in the tagone and tagtwo fields before they're changed.

Code: [Select]
package tags
{
     funtcion GameConnection::onClientEnterGame(%client)
     {     %client.tagone =%client.clanprefix;
%client.tagtwo = %client.clansuffix;
%client.clanprefix = "";
%client.clansuffix = "";
             return Parent::onClientEnterGame(%client);
      }
};
activatepackage(tags);

Is that done correctly?
EDIT: Another quick question, how do you change the color of  a clan prefix or suffix? I've tried everything I could think of and nothing worked it always came out as grey.
« Last Edit: September 24, 2009, 08:11:43 PM by devildogelite »

Just add a hex code or \c0-9 right before where you want the color change. Listen to what Truce said, use GameConnection::AutoAdminCheck(%this) for when they join.