Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //F Key
- case 33: {
- if (playerSide in [west,independent] && {vehicle player != player} && {!life_siren_active}) then {
- [] spawn {
- life_siren_active = true;
- sleep 3;
- life_siren_active = false;
- };
- _veh = vehicle player;
- if (isNil {_veh getVariable "siren"}) then {_veh setVariable ["siren",false,true];};
- if ((_veh getVariable "siren")) then {
- titleText [localize "STR_MISC_SirensOFF","PLAIN"]; titleFadeOut 2;
- _veh setVariable ["siren",false,true];
- } else {
- titleText [localize "STR_MISC_SirensON","PLAIN"]; titleFadeOut 2;
- _veh setVariable ["siren",true,true];
- if (playerSide isEqualTo west) then {
- [_veh] remoteExec ["life_fnc_copSiren",RCLIENT];
- } else {
- [_veh] remoteExec ["life_fnc_medicSiren",RCLIENT];
- };
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement