Author Topic: setshapenames  (Read 687 times)

Well, It appears in the name to just say "Kunit [Is ]" on re-spawn, yet it is fine when you first create the tribe name.

Code: [Select]
package SurRPz
{
function GameConnection::SpawnPlayer(%this)
{
     Parent::SpawnPlayer(%this);
     %this.player.setShapeName(%this.name @ "[Is " @ %Tribename @ " ]");
}
};
activatePackage("SurRPz");

Code: [Select]
function serverCmdCreateTribe(%client, %TribeName)
{
%client.clanprefix = %Tribename;
%client.player.setshapename(%client.name SPC "[Is " @ %TribeName @ "]");
}

1. I don't believe you can modify clanprefix, clansuffix, or name variables on the client anymore(might be wrong about the clanprefix and suffix though)

2. you are pulling the %tribename variable out of thin air in the respawn.

3. you aren't attaching the %tribename variable to the client when they create a tribe


To fix:
1. Attach the variable to the client(i.e %client.tribename = %tribename;)
2. Grab the variable from the client on respawn(%tribename = ...)

1. I don't believe you can modify clanprefix, clansuffix, or name variables on the client anymore(might be wrong about the clanprefix and suffix though)

2. you are pulling the %tribename variable out of thin air in the respawn.

3. you aren't attaching the %tribename variable to the client when they create a tribe


To fix:
1. Attach the variable to the client(i.e %client.tribename = %tribename;)
2. Grab the variable from the client on respawn(%tribename = ...)

Ok, I tried assigning %client to tribename but it gave a syntax let me try again.

Ninja Edit: Yep worked, Thanks.