Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(DZE_AllowForceSave) then {
- //--------------------------------------ARREST----------------------------------------------------------------
- _side = side _cursorTarget == west; //so only Players can be detained
- _arrestreq = "PartGeneric" in magazines player; // CHANGE THIS TO THE ITEM YOU WANT PLAYERS TO NEED TO BE ABLE TO ARREST
- if (player getVariable "Detain" == 1) then {
- player removeAction s_player_arrest;
- };
- if(_isMan && !_isZombie && _canDo && _isAlive && !_isAnimal && _arrestreq && _side) then {
- if (_cursorTarget getVariable "Detain" == 1) exitWith {};
- if (s_player_arrest < 0) then {
- s_player_arrest = player addaction [("<t color=""#0074E8"">" + ("Detain") +"</t>"), "arrest\Detain.sqf",_cursorTarget,100,false,true,"", ""];
- };
- } else {
- player removeAction s_player_arrest;
- s_player_arrest = -1;
- };
- if ((_cursorTarget getVariable "Detain" == 1) && cursorTarget distance player < 2 ) then
- {
- if(_isMan && !_isZombie && _canDo && _isAlive) then {
- if (s_player_escort < 0) then {
- s_player_escort = player addaction [("<t color=""#0074E8"">" + ("Escort") +"</t>"), "arrest\Escort.sqf",_cursorTarget, 1, true, true, "", ""];
- };
- } else {
- player removeAction s_player_escort;
- s_player_escort = -1;
- };
- if(_isMan && !_isZombie && _canDo && _isAlive) then {
- if (s_player_search < 0) then {
- s_player_search = player addaction [("<t color=""#0074E8"">" + ("Search") +"</t>"), "arrest\Search.sqf",_cursorTarget, 1, true, true, "", ""];
- };
- } else {
- player removeAction s_player_search;
- s_player_search = -1;
- };
- if(_isMan && !_isZombie && _canDo && _isAlive) then {
- if (s_player_release < 0) then {
- s_player_release = player addaction [("<t color=""#0074E8"">" + ("Release") +"</t>"), "arrest\release.sqf",_cursorTarget, 1, true, true, "", ""];
- };
- } else {
- player removeAction s_player_release;
- s_player_release = -1;
- };
- };
- //-------------------------------------------------------------------------------------------------------------
- //Allow player to force save
- if((_isVehicle or _isTent) and !_isMan) then {
- Down Below I have added the below
- player removeAction s_player_SurrenderedGear;
- s_player_SurrenderedGear = -1;
- //Arrest
- player removeAction s_player_arrest;
- s_player_arrest = -1;
- player removeAction s_player_release;
- s_player_release = -1;
- player removeAction s_player_escort;
- s_player_escort = -1;
- player removeAction s_player_search;
- s_player_search = -1;
- //Others
- player removeAction s_player_forceSave;
- s_player_forceSave = -1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement