registerOutputEvent(fxDtsBrick, "ChatMessageServer", "STRING 200 150", 1);
registerOutputEvent(fxDtsBrick, "CenterPrintServer", "STRING 200 150 INTEGER 0 10", 1);
registerOutputEvent(fxDtsBrick, "BottomPrintServer", "STRING 200 150 INTEGER 0 10 BOOL", 1);
function fxDtsBrick::ChatMessageServer(%this, %msg, %oClient)
{
%numClients = ClientGroup.getCount();
for(%i; %i<numClients; %i++)
{
%client = ClientGroup.get(%i);
messageClient(%client,'', %msg);
}
}
function fxDtsBrick::CenterPrintServer(%this, %msg, %time, %oClient)
{
%numClients = ClientGroup.getCount();
for(%i; %i<numClients; %i++)
{
%client = ClientGroup.get(%i);
%client.centerPrint(%msg,%time);
}
}
function fxDtsBrick::BottomPrintServer(%this, %msg, %time, %bar, %oClient)
{
%numClients = ClientGroup.getCount();
for(%i; %i<numClients; %i++)
{
%client = ClientGroup.get(%i);
%client.centerPrint(%msg,%time,%bar);
}
}
I don't have time to test this, but this is generally what you need. You can test it out by copying all the code and then entering eval(getclipboard()); into the console while hosting a server. Though you'll want it packaged as an add-on if you want it to function properly.