Well, I need it in the form of a new command, I've already got a Local Chat system working off of "serverCmdMessageSent". Also, I tried to tinker around with some of the code in that function and I didn't get any results, every time only one argument was returned.
Local Chat - This code works perfectly.
function serverCmdMessageSent(%client, %message)
{
if(!isObject(%client.player))
{
messageAll('',"\c2[Loading] \c1" @ %client.Name @ "\c6: " @ %message);
return;
}
if($RoleplayChat == 1)
{
InitContainerRadiusSearch(%client.player.position,20,$TypeMasks::PlayerObjectType);
while((%targetobject=containerSearchNext()) !$= 0)
{
%client=%targetobject.client;
messageClient(%client,'',"\c2[Local] \c3" @ %client.Name @ "\c6: " @ %message);
}
echo("" @ %client.Name @ " - [Local] " @ %message @ "!");
return;
}
else
{
return parent::serverCommandMessageSent(%client, %message);
}
}
Now what I need would be something like this.
function serverCmdMe(%client,%msg)
{
if($RoleplayChat == 1)
{
InitContainerRadiusSearch(%client.player.position,20,$TypeMasks::PlayerObjectType);
while((%targetobject=containerSearchNext()) !$= 0)
{
%client=%targetobject.client;
//Message all the clients in are with the total string the client types, just like MessageSent.
}
}
}
The only way I can do it as of right now is like so:
function serverCmdMe(%client,%m1,%m2,%m3...)
{
//PrintStuff using %m1-%mX.
}