daily pastebin goal
84%
SHARE
TWEET

Untitled

a guest Jun 19th, 2017 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     //F Key
  2.     case 33: {
  3.         if (playerSide in [west,independent] && {vehicle player != player} && {!life_siren_active}) then {
  4.             [] spawn {
  5.                 life_siren_active = true;
  6.                 sleep 3;
  7.                 life_siren_active = false;
  8.             };
  9.  
  10.             _veh = vehicle player;
  11.             if (isNil {_veh getVariable "siren"}) then {_veh setVariable ["siren",false,true];};
  12.             if ((_veh getVariable "siren")) then {
  13.                 titleText [localize "STR_MISC_SirensOFF","PLAIN"]; titleFadeOut 2;
  14.                 _veh setVariable ["siren",false,true];
  15.             } else {
  16.                 titleText [localize "STR_MISC_SirensON","PLAIN"]; titleFadeOut 2;
  17.                 _veh setVariable ["siren",true,true];
  18.                 if (playerSide isEqualTo west) then {
  19.                     [_veh] remoteExec ["life_fnc_copSiren",RCLIENT];
  20.                 } else {
  21.                     [_veh] remoteExec ["life_fnc_medicSiren",RCLIENT];
  22.                 };
  23.             };
  24.         };
  25.     };
RAW Paste Data
Top