Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. //Shift Right (Homeguard Siren)
  2. case 54: {
  3. if !(license_standardhomeguard) then {
  4. hintSilent "You need to be an active member of the Homeguard!";
  5. sleep 1.3;
  6. hintSilent "";
  7.  
  8. } else {
  9.  
  10. if (playerSide in [civilian] && {vehicle player != player} && {!life_siren_active} && {((driver vehicle player) == player)}) then {
  11.  
  12. [] spawn {
  13. life_siren_active = true;
  14. sleep 4.7;
  15. life_siren_active = false;
  16. };
  17.  
  18. _veh = vehicle player;
  19. if (isNil {_veh getVariable "siren"}) then {_veh setVariable ["siren",false,true];};
  20.  
  21. [] spawn {
  22. if ((_veh getVariable "siren")) then {
  23. hintSilent "HomeGuard Siren De-Activated!";
  24. sleep 1.3;
  25. hintSilent "";
  26. _veh setVariable ["siren",false,true];
  27. } else {
  28. hintSilent "HomeGuard Siren Activated!";
  29. sleep 1.3;
  30. hintSilent "";
  31. _veh setVariable ["siren",true,true];
  32.  
  33. if (playerSide isEqualTo west) then {
  34. [_veh] remoteExec ["life_fnc_medicSiren",RCLIENT];
  35. } else {
  36. [_veh] remoteExec ["life_fnc_medicSiren",RCLIENT];
  37. };
  38. };
  39. };
  40.  
  41.  
  42. };
  43. };
  44. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement