Jump to content
HellGamer115

DayZ Epoch Hand Cuff/Arrest players [HELP]

Recommended Posts

hey guys,

i recently found a script that let you hand cuff players http://opendayz.net/threads/dayz-1-8-0-3-handcuff-player-help.15324/page-8#post-96967

but i want to disable it in safe zones.

i use AGN safe zone Commander http://pastebin.com/WifTc5Tm

there is the script, so can someone help me. because i dont want people handcuffing and arresting other.

other than that, this script works perfectly 

Share this post


Link to post
Share on other sites

Sorry atm I don't have time but use this as example:

if (intradercity) exitwith {

s_player_handcuff = -1;

};

or

if (intradercity) then {

removeAddaction s_player_handcuff;

};

I hope this helps a little bit :/

 

EDIT: If you always need it, I will take a closer look at it tomorrow.

ill wait until tomorrow, i dont know how to do what you just said.

Share this post


Link to post
Share on other sites

Hello guys, i just try to add this script to our server, if i follow http://www.armaholic.com/page.php?id=16289 "tutorial" appears endless menus with the option apparently works, but the player does not affect you, just being tied to you like a bug.

 

Next try with http://opendayz.net/threads/dayz-1-8-0-3-handcuff-player-help.15324/ and no appears option , i change the required item to "ItemWire"

 

these is my fn_selfactions adds

    _hasArrestItems = "ItemWire" in magazines player; // ARREST SCRIPT REQ
//--------------------------------------ARREST----------------------------------------------------------------
 //if ((player getVariable"humanity") >= 10000 or (player getVariable"humanity") <= -10000) then {

		if(_isMan && !_isZombie && _hasArrestItems && _canDo && _isAlive) then {
		if (s_player_arrest < 0) then {
			s_player_arrest = player addaction ['<t color="#0074E8">' + "Investigation Menu" + '</t>', "Scripts\Investigate\investigate.sqf","",5,false,true,"", ""];
		};
	} else {
		player removeAction s_player_arrest;
		s_player_arrest = -1;
	};

//-------------------------------------------------------------------------------------------------------------

//Arrest
	player removeAction s_player_arrest;
	s_player_arrest = -1;
	

alguien lo tiene funcionando en 1.0.4.2? I forgot something?

 

Please i need help to find where is my error. Thanks in advance.

Share this post


Link to post
Share on other sites

You know how many times people have told you that you keep posting in the wrong section for this? Please post in the right section next time.

but this is sort of a release, its not made by me. im just letting people know that there is something like this.

Share this post


Link to post
Share on other sites

but this is sort of a release, its not made by me. im just letting people know that there is something like this.

1. You didn't make it and if the guy wanted to share it on epochmod.com he would of. 2. You are asking for help with the script which should be in the hows it done or scripting help forum.

Share this post


Link to post
Share on other sites

1. You didn't make it and if the guy wanted to share it on epochmod.com he would of. 2. You are asking for help with the script which should be in the hows it done or scripting help forum.

i understand and agree but quit being a dick man.

Share this post


Link to post
Share on other sites

Getting it working on my server but going to keep it as a exclusive feature 0_o

its not exclusive.....

 

In  fn_selfactions add  the following code above       //Player Deaths

 

//----------------Detain--------------------------------------------------------------------------
//Player Detain, Search, Release
    if (_isMan and _isAlive and !inSafeZone and !_isZombie and !_isAnimal && !(_traderType in serverTraders)) then {
        if (s_player_investo < 0) then {
            s_player_investo = player addAction [("<t color=#ffa500'>")+("Detain")+("</t>"), "Custom\Scripts\investigation\Detain.sqf",cursorTarget, 5, false, true, "","];
        };
        if (s_player_investoTwo < 0) then {
            s_player_investoTwo = player addAction [("<t color=#ffa500'>")+("Search")+("</t>"), "Custom\Scripts\investigation\Search.sqf",cursorTarget, 5, false, true, "","];
        };
        if (s_player_investoThree < 0) then {
            s_player_investoThree = player addAction [("<t color=#ffa500'>")+("Escort")+("</t>"), "Custom\Scripts\investigation\Escort.sqf",cursorTarget, 5, false, true, "","];
        };
        if (s_player_investoFour < 0) then {
            s_player_investoFour = player addAction [("<t color=#ffa500'>")+("Release")+("</t>"), "Custom\Scripts\investigation\Release.sqf",cursorTarget, 5, false, true, "","];
        };
    } else {
        player removeAction s_player_investo;
        s_player_investo = -1;
        player removeAction s_player_investoTwo;
        s_player_investoTwo = -1;
        player removeAction s_player_investoThree;
        s_player_investoThree = -1;
        player removeAction s_player_investoFour;
        s_player_investoFour = -1;
    };
//------------------------------------------------------------------------------------------------

 
Add this in your mission file and change the calls for each section to fit your location  
IE:   "Custom\Scripts\investigation\Release.sqf" 
 
 
7:  Profit??!
 
 
PS: I did NOT write this. i take no credit.

Share this post


Link to post
Share on other sites

 

its not exclusive.....

 

In  fn_selfactions add  the following code above       //Player Deaths

 

//----------------Detain--------------------------------------------------------------------------
//Player Detain, Search, Release
    if (_isMan and _isAlive and !inSafeZone and !_isZombie and !_isAnimal && !(_traderType in serverTraders)) then {
        if (s_player_investo < 0) then {
            s_player_investo = player addAction [("<t color=#ffa500'>")+("Detain")+("</t>"), "Custom\Scripts\investigation\Detain.sqf",cursorTarget, 5, false, true, "","];
        };
        if (s_player_investoTwo < 0) then {
            s_player_investoTwo = player addAction [("<t color=#ffa500'>")+("Search")+("</t>"), "Custom\Scripts\investigation\Search.sqf",cursorTarget, 5, false, true, "","];
        };
        if (s_player_investoThree < 0) then {
            s_player_investoThree = player addAction [("<t color=#ffa500'>")+("Escort")+("</t>"), "Custom\Scripts\investigation\Escort.sqf",cursorTarget, 5, false, true, "","];
        };
        if (s_player_investoFour < 0) then {
            s_player_investoFour = player addAction [("<t color=#ffa500'>")+("Release")+("</t>"), "Custom\Scripts\investigation\Release.sqf",cursorTarget, 5, false, true, "","];
        };
    } else {
        player removeAction s_player_investo;
        s_player_investo = -1;
        player removeAction s_player_investoTwo;
        s_player_investoTwo = -1;
        player removeAction s_player_investoThree;
        s_player_investoThree = -1;
        player removeAction s_player_investoFour;
        s_player_investoFour = -1;
    };
//------------------------------------------------------------------------------------------------

 
Add this in your mission file and change the calls for each section to fit your location  
IE:   "Custom\Scripts\investigation\Release.sqf" 
 
 
7:  Profit??!
 
 
PS: I did NOT write this. i take no credit.

 

Ive had this on my server for months 

however the escort does not work

and a player can detain  traders.

does your post have fixes for these issues ???

Share this post


Link to post
Share on other sites

It might be possible to add 

CanDetain = false or whatever you've called it in the Safezone triggers.

 

Personally, I've seen issues with detaining scripts where you can run into a group of people and spam scroll options detaining 3-4 people in seconds.

To fix this I'd recommend adding the execuation to extra_rc so you have to sneak up, and open a menu. It also reduces lag on your server.

Share this post


Link to post
Share on other sites

I replace code to fn_selfaction.sqf and check to humanity dont work 
My code:
Please help corect make code to check humanity and player in trader zone

if ((player getVariable"humanity") >= 100000 or (player getVariable"humanity") >= -100000) then {
    if (_isMan and _isAlive and !inSafeZone and !_isZombie and !_isAnimal && !(_traderType in serverTraders)) then {
        if (s_player_investo < 0) then {
            s_player_investo = player addAction [("<t color='#ffa500'>")+("Detain")+("</t>"), "scripts\investigation\Detain.sqf",cursorTarget, 5, false, true, "",""];
        };
        if (s_player_investoTwo < 0) then {
            s_player_investoTwo = player addAction [("<t color='#ffa500'>")+("Search")+("</t>"), "scripts\investigation\Search.sqf",cursorTarget, 5, false, true, "",""];
        };
        if (s_player_investoThree < 0) then {
            s_player_investoThree = player addAction [("<t color='#ffa500'>")+("Escort")+("</t>"), "scripts\investigation\Escort.sqf",cursorTarget, 5, false, true, "",""];
        };
        if (s_player_investoFour < 0) then {
            s_player_investoFour = player addAction [("<t color='#ffa500'>")+("Release")+("</t>"), "scripts\investigation\release.sqf",cursorTarget, 5, false, true, "",""];
        };
		if (s_player_investoFive < 0) then {
            s_player_investoFive = player addAction [("<t color='#ffa500'>")+("Stop Escort")+("</t>"), "scripts\investigation\stop_escort.sqf",cursorTarget, 5, false, true, "",""];
        };
    } else {
        player removeAction s_player_investo;
        s_player_investo = -1;
        player removeAction s_player_investoTwo;
        s_player_investoTwo = -1;
        player removeAction s_player_investoThree;
        s_player_investoThree = -1;
        player removeAction s_player_investoFour;
        s_player_investoFour = -1;
	player removeAction s_player_investoFive;
        s_player_investoFive = -1;
    };
};

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...