Advertisement
Guest User

Untitled

a guest
Jul 17th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement