121
Suggestions & Requests / Re: ChatMsgAll outside of minigames
« on: February 16, 2013, 01:20:26 PM »In case you guys missed the subtlety in port's post, you should use messageAll for the chatmessage one instead of overcomplicating thingsI forgot those commands existed.
Code: [Select]
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);
}