Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private ["_sosItem","_pos","_msg"];
- _sosItem = _this select 0;
- if(isNull player OR !alive player) exitWith {};
- if(playerSide != west) exitWith {hint localize "STR_NOTF_NotACop"};
- if(life_istazed OR life_knockOut) exitWith {};
- if(!([false, _sosItem ,1] call life_fnc_handleInv)) exitWith {};
- _pos = mapGridPosition player;
- sleep 1;
- _msg = parseText format ["<t size='2' color='#EAF200'>• • • - - - • • •</t><br/><t size='2.7' color='#00B4F5'>S O S</t><br/><t size='2' color='#EAF200'>• • • - - - • • •</t><br/><br/><br/><t color='#ff0000' size='1.5'>%1</t><br/><br/><t color='#6DCE5D' size='1.3'>%2</t><br/><br/><t size='1.2'><br/>Drückte Den SOS-Knopf</t><br/>"];
- [0,format[_msg, profileName, _pos]] remoteExec ["life_fnc_broadcast",west];
- if(player getVariable "inSOS") exitWith {};
- [] spawn {
- player setVariable ["inSOS",true,true];
- sleep 30;
- player setVariable ["inSOS",false,true];
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement