diff --git a/addons/main/functions/fn_init.sqf b/addons/main/functions/fn_init.sqf index ab7fa1d..eef7db5 100644 --- a/addons/main/functions/fn_init.sqf +++ b/addons/main/functions/fn_init.sqf @@ -20,4 +20,19 @@ if (isServer && _activated) exitWith { missionNamespace setVariable ["_atak_server_instance_password", _atak_ots_api_password]; _atak_server_instance_token = call armatak_fnc_extract_auth_token; -}; + + if (isMultiplayer) then { + { + [{ + [_x] call armatak_fnc_postMarker; + }, 1, []] call CBA_fnc_addPerFrameHandler; + } forEach playableUnits; + } else { + [{ + [player] call armatak_fnc_postMarker; + }, 1, []] call CBA_fnc_addPerFrameHandler; + }; + + private _warning = format ["ARMATAK
%1", "Connected"]; + [[_warning, 2]] call CBA_fnc_notify; +}; \ No newline at end of file