Bump, mainly because Desolation stopped working on his to work on the Fallout RP. I reset the project and made a list of what I need to complete, in order. I am working on a kingdom formation system, but I have a problem. I cannot figure out how to make it so you can make the team name more than one word. I can add a %groupname2 and %groupname3 but I do not know how to combine them into one name.
function servercmdFormGroup(%client, %groupname)
{
if(!%client.Isking)
{
%heard = 0;
//Determine the ammount of players
InitContainerRadiusSearch(%client.player.getPosition(), $RP::pref::server::FormteamDistance, $TypeMasks::PlayerObjectType);
while((%search = ContainerSearchNext()) != 0)
%heard++;
//Send the message
InitContainerRadiusSearch(%client.player.getPosition(), $RP::pref::server::visibleDistance, $TypeMasks::PlayerObjectType);
while((%search = ContainerSearchNext()) != 0)
messageClient(%search.client, 'chatmessage', "\c6" @ %client.name @ " Asks you to join his group called " @ %Groupname @ "");
}
}
For example, if you wanted to name your team "Great Fighters", The messageclient thing would say
"Heedicalking Asks you to join his group called Great"
I could use some help here.