Français Solved Comment bloquer des canaux sur taskforceradio

Solution
Tu peux ajouter après cette ligne [] spawn theprogrammer_core_fnc_clientInit; dans ton core/init.sqf le code qu'à posté Enzo2991 Enzo2991 :
[] 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 {...
19/8/20
121
3
5
1 100
Salut! Quel est le problème plus précisément ?

Il n'y a visiblement pas les modifications du tutoriel dans ton fichierbonjour ,
bonjour
justement j'ai fais des essaies mais je ne voie pas ce que je peut gardé ou non ,
car je souhaite gardé également le blocage quand ils sont pas dans le taskforce
 

Maxence

Admin
Membre du personnel
Tu peux ajouter après cette ligne [] spawn theprogrammer_core_fnc_clientInit; dans ton core/init.sqf le code qu'à posté Enzo2991 Enzo2991 :
[] 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;
};
};
};
};
};
};
 
Solution
Activité
Pour l'instant, il n'y a personne ici