Jump to content

LoSantos_YT

Members
  • Posts

    8
  • Joined

  • Last visited

About LoSantos_YT

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

LoSantos_YT's Achievements

Newbie

Newbie (1/6)

0

Reputation

  1. For the cop level you should check in the database if you have it added. you should have something like this. To create a swat license just go to config/Config_Licenses and create one for cop. And then you only have to put as a condition when buying the clothes "call life_coplevel >= 7 number chosen for the Swat" or "licence_cop_Swat" for example.
  2. for that you can use the CopLevel or create a license in the Config_License
  3. I am going to help you, since they have removed the search option. But there is already a topic with that in the forum (I can't give you credits because I can't find it). 1. Go to init.sqf and paste this on the top [] execVM "script\tfr_channellock.sqf"; 2. Go to mission folder and create and other folder with name "script" 3. Go to script folder and create tfr_channellock.sqf file. 4. Open tfr_channellock.sqf and paste this: /* File: tfr_channellock Author: Unknown Author Edited by LoSantosYT Description: Channel lock for Task For Radio "Lock police and ems channel" */ private["_hasLRRadio", "_hasSWRadio","_radioArray","_radios", "_channel", "_currentFreq","_check","_curfreqsr"]; if(playerSide != civilian) exitWith {}; [] spawn { while {true} do { _radioArray = []; _radios = player call TFAR_fnc_radiosList; _hasLRRadio = call TFAR_fnc_haveLRRadio; _hasSWRadio = call TFAR_fnc_haveSWRadio; if((count _radios) isEqualTo 1) then { if(_hasLRRadio) then { _channel = (call TFAR_fnc_ActiveLRRadio) call TFAR_fnc_getLRChannel; _channel = _channel + 1; if (driver (vehicle player) == player && (vehicle player) != player) then { _curfreqlr = [(call TFAR_fnc_activeLrRadio), _channel] call TFAR_fnc_GetChannelFrequency; _curfreqlr = parseNumber _curfreqlr; if( _curfreqlr >= 33 && _curfreqlr <= 34 ) then { ["33.1 - 33.9 son frecuencias bloqueadas.","error"] spawn Aquaman_fnc_notification_system; [(call TFAR_fnc_activeLrRadio), _channel, "41"] call TFAR_fnc_SetChannelFrequency; }; }; }; if(_hasSWRadio) then { _channel = (call TFAR_fnc_ActiveSwRadio) call TFAR_fnc_getSwChannel; _channel = _channel + 1; _curfreqsr = [(call TFAR_fnc_activeSwRadio), _channel] call TFAR_fnc_GetChannelFrequency; _curfreqsr = parseNumber _curfreqsr; if(!isNil "_curfreqsr") then { if( _curfreqsr >= 33 && _curfreqsr <= 34 ) then { ["33.1 - 33.9 son frecuencias bloqueadas.","error"] spawn Aquaman_fnc_notification_system; [(call TFAR_fnc_activeSwRadio), _channel, "41"] call TFAR_fnc_SetChannelFrequency; }; }; }; } else { { if(_x != "tf_anprc148jem") then { player unassignItem _x; player removeItem _x; }; if(_hasSWRadio) then { _channel = (call TFAR_fnc_ActiveSwRadio) call TFAR_fnc_getSwChannel; _channel = _channel + 1; _curfreqsr = [(call TFAR_fnc_activeSwRadio), _channel] call TFAR_fnc_GetChannelFrequency; if(!isNil "_curfreqsr") then { ["Estás intentando acceder a una frecuencia bloqueada...","error"] spawn Aquaman_fnc_notification_system; [(call TFAR_fnc_activeSwRadio), _channel, str (round(random 480)+30)] call TFAR_fnc_SetChannelFrequency; }; }; } forEach _radios; uiSleep 3; }; uiSleep 2; }; };
  4. What this script does is to automatically set radio frequencies to the player. This is not only useful for Altis, but for cooperative missions as well. In my case I use it so that the police can configure all the channels with their respective frequencies (since these are blocked for civilians). Difficulty: Easy Credit To: LoSantosYT The resources that I use: We go to \core\functions\fn_keyHandler.sqf we can put it wherever we want, I recommend putting it in the middle or at the end of the document. //Shift + F1 - RADIO case 59: { if (_shift) then { if (playerSide in [west]) then { //Function -->[(if short or long range, channel, frequency] call TFAR_fnc_SetChannelFrequency [(call TFAR_fnc_activeSwRadio), 1, "33.1"] call TFAR_fnc_SetChannelFrequency; [(call TFAR_fnc_activeSwRadio), 2, "33.2"] call TFAR_fnc_SetChannelFrequency; [(call TFAR_fnc_activeSwRadio), 3, "33.3"] call TFAR_fnc_SetChannelFrequency; [(call TFAR_fnc_activeSwRadio), 4, "33.4"] call TFAR_fnc_SetChannelFrequency; [(call TFAR_fnc_activeSwRadio), 5, "33.5"] call TFAR_fnc_SetChannelFrequency; [(call TFAR_fnc_activeSwRadio), 6, "33.6"] call TFAR_fnc_SetChannelFrequency; [(call TFAR_fnc_activeSwRadio), 7, "33.7"] call TFAR_fnc_SetChannelFrequency; [(call TFAR_fnc_activeSwRadio), 8, "70.1"] call TFAR_fnc_SetChannelFrequency; //Notification ["Established frequencies", "info"] call Aquaman_fnc_notification_system; }; }; }; If we wanted the same for a long-range radio, we replace it with: [(call TFAR_fnc_activeLrRadio), 1, "30"] call TFAR_fnc_SetChannelFrequency; I placed it here because it seems easier to me that every time the player's frequencies are changed, he gets them right again. Post from where I got the script: https://forums.bohemia.net/forums/topic/191099-task-force-radio-auto-channel-set-script/
  5. Thank you very much. Finally, in a robbery, how could I make the notification only for the police? changing the 0 for west?
  6. I am new to the subject, and I wanted to know how to put this system in a global notification (such as when they steal or capture a zone) that reaches all players that notification?
  7. this is not necessary to write anything in the eden editor?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.