Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Shift Right (Homeguard Siren)
- case 54: {
- if !(license_standardhomeguard) then {
- hintSilent "You need to be an active member of the Homeguard!";
- sleep 1.3;
- hintSilent "";
- } else {
- if (playerSide in [civilian] && {vehicle player != player} && {!life_siren_active} && {((driver vehicle player) == player)}) then {
- [] spawn {
- life_siren_active = true;
- sleep 4.7;
- life_siren_active = false;
- };
- _veh = vehicle player;
- if (isNil {_veh getVariable "siren"}) then {_veh setVariable ["siren",false,true];};
- [] spawn {
- if ((_veh getVariable "siren")) then {
- hintSilent "HomeGuard Siren De-Activated!";
- sleep 1.3;
- hintSilent "";
- _veh setVariable ["siren",false,true];
- } else {
- hintSilent "HomeGuard Siren Activated!";
- sleep 1.3;
- hintSilent "";
- _veh setVariable ["siren",true,true];
- if (playerSide isEqualTo west) then {
- [_veh] remoteExec ["life_fnc_medicSiren",RCLIENT];
- } else {
- [_veh] remoteExec ["life_fnc_medicSiren",RCLIENT];
- };
- };
- };
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement