SHARE
TWEET

Untitled

a guest Jul 17th, 2017 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Written by beta
  2. //Check if player is on a frequency
  3.  
  4.  
  5. private ["_freq", "_flag"];
  6.  
  7. _freq = _this select 0;
  8. _flag = false;
  9.  
  10. if (alive player) then
  11. {
  12.     if ([player] call acre_api_fnc_hasRadio) then
  13.     {
  14.         if ((([] call acre_api_fnc_getCurrentRadioState) select 0) == _freq) then
  15.         {
  16.             _flag = true;
  17.         };
  18.     };
  19. };
  20.  
  21. _flag
RAW Paste Data
Top