[] spawn {
while {true} do {
if (playerSide isEqualTo civilian) then {
_haveSw = call TFAR_fnc_haveSWRadio;
if (_haveSw) then {
_channel = (call TFAR_fnc_ActiveSwRadio) call TFAR_fnc_getSwChannel;
_channel = _channel + 1;
_radioactuel = [(call TFAR_fnc_activeSwRadio), _channel] call TFAR_fnc_GetChannelFrequency;
_radioactuel = parseNumber _radioactuel;
if (!isNil "_radioactuel") then {
if (_radioactuel <= 100 && _radioactuel >= 30) then {
_randomFrequence = floor(random[101, 306, 512]);
hint "bloquage des fréquences radio de 30 a 100";
[(call TFAR_fnc_activeSwRadio), _channel, str _randomFrequence] call TFAR_fnc_SetChannelFrequency;
};
};
};
};
};
};