34 lines
817 B
Plaintext
34 lines
817 B
Plaintext
|
|
if (!isServer) exitWith {};
|
|
|
|
[] spawn {
|
|
//if (!hasInterface) exitWith {};
|
|
if (!isServer) exitWith {};
|
|
//if (!isDedicated) exitWith {};
|
|
|
|
"liba3tg" callExtension ["chat", []];
|
|
|
|
waitUntil {time > 0};
|
|
|
|
addMissionEventHandler ["ExtensionCallback", {
|
|
params ["_name", "_function", "_data"];
|
|
if (_name isEqualTo "a3tg") then
|
|
{
|
|
(format ["[TG] %1: %2", _function, _data]) remoteExecCall ["systemChat", -2, true];
|
|
};
|
|
}];
|
|
|
|
huashui_a3tg_client = {
|
|
[] spawn {
|
|
waitUntil {time > 0};
|
|
["cba_events_chatMessageSent", {
|
|
params ["_message"];
|
|
[name player, _message] remoteExecCall ["huashui_fnc_sendmsg", 2, false];
|
|
}] call CBA_fnc_addEventHandler;
|
|
};
|
|
};
|
|
publicVariable "huashui_a3tg_client";
|
|
remoteExecCall ["huashui_a3tg_client", -2, true];
|
|
|
|
};
|