Blockland Forums > Suggestions & Requests
ChatMsgAll outside of minigames
<< < (4/6) > >>
pecon98:

--- Quote from: Treynolds416 on February 16, 2013, 07:37:23 AM ---In case you guys missed the subtlety in port's post, you should use messageAll for the chatmessage one instead of overcomplicating things

--- End quote ---
I forgot those commands existed.


--- Code: ---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)
{
messageAll('', %msg);
}

function fxDtsBrick::CenterPrintServer(%this, %msg, %time, %oClient)
{
centerprintall(%msg, %time);
}

function fxDtsBrick::BottomPrintServer(%this, %msg, %time, %bar, %oClient)
{
bottomprintall(%msg, %time, %bar);
}

--- End code ---
Greek2me:
I'm working on a mod to add targets to existing input events. Once it's done you'll be able to make an event like:

onActivate => Server => chatMsgAll blah
Port:

--- Quote from: WALDO on February 16, 2013, 01:46:50 PM ---Or you could just use the announce command. That usually works.

--- End quote ---

Which would be pointless, because all it does is this:


--- Code: ---function announce( %message )
{
messageAll( '', %mesage );
}

--- End code ---
WALDO:

--- Quote from: Port on February 16, 2013, 02:32:13 PM ---Which would be pointless, because all it does is this:


--- Code: ---function announce( %message )
{
messageAll( '', %mesage );
}

--- End code ---

--- End quote ---
I know but it's just another way of doing it. :)
elm:
Is clientGroup.get(%i); even valid?
Navigation
Message Index
Next page
Previous page

Go to full version