I'm actually gonna start working on this again now that I have some free time from all my other little projects, so hopefully I'll be able to get some work done on it.
Thats good to hear, if you need help in any way let me know
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
I'm actually gonna start working on this again now that I have some free time from all my other little projects, so hopefully I'll be able to get some work done on it.
_side = side _cursorTarget == west; //so only Players can be detained
_string = "PartGeneric" in magazines player;
_isVehicle = _cursorTarget isKindOf "AllVehicles";
//--------------------------------------ARREST----------------------------------------------------------------
if (player getVariable "Detain" == 1) then {
player removeAction s_player_arrest;
};
if(_isMan && !_isZombie && _canDo && _isAlive && !_isAnimal && _string && _side) then {
if (s_player_arrest < 0) then {
s_player_arrest = player addaction [("<t color=""#0074E8"">" + ("Detain") +"</t>"), "ATPExclusion\Detain.sqf","",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>"), "ATPExclusion\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>"), "ATPExclusion\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>"), "ATPExclusion\release.sqf",_cursorTarget, 1, true, true, "", ""];
};
} else {
player removeAction s_player_release;
s_player_release = -1;
};
};
//-------------------------------------------------------------------------------------------------------------
if(DZE_AllowForceSave) then {
//Allow player to force save
if((_isVehicle or _isTent) and !_isMan) then {
if (s_player_forceSave < 0) then {
s_player_forceSave = player addAction [format[localize "str_actions_save",_text], "\z\addons\dayz_code\actions\forcesave.sqf",_cursorTarget, 1, true, true, "", ""];
};
} else {
player removeAction s_player_forceSave;
s_player_forceSave = -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;
I tried to make all the files look neater, and commented on pretty much everything but..Nice but it looks like you have the escort covered? Did you mean imprison part?
I updated my post above cause I forgot one part in getting it to work, but the detention doesn't let players do anything. They can only look around and type. They cannot shoot, they cannot open their gear. They can logout i believe but that is about it.Did you add the function to force player to drop primary and secondary weapons upon detention? If not they will be able to fire while detained?
Forcing the player to do the surrender emotion in game will have them drop weapons, but not many players know about this keybind
Inkko took a Scrap Metal for it:
like you can see here:
Code:_string = "PartGeneric" in magazines player;
_string = "PartGeneric" in magazines player;
_string = "PartGeneric" in _magazinesPlayer;
/* /--------------------------------------ARREST----------------------------------------------------------------
if ((player getVariable"humanity") >= 9000) then {
if(_isMan && !_isZombie && _canDo && _isAlive) then {
if (s_player_arrest < 0) then {
s_player_arrest = player addaction ['<t color="#0074E8">' + "Investigation Menu" + '</t>', "Scripts\Investigation\investigation.sqf","",100,false,true,"", ""];
};
} else {
player removeAction s_player_arrest;
s_player_arrest = -1;
};
};
*/ /-------------------------------------------------------------------------------------------------------------
Does your RPT log say anything?that is a commented out part of a working arrest script, all other scripts called in my fn_selfAction file is working but not yours :/
i can only see my client rpt not the server rpt sadly
this is my current fn_selfactions.sqf with all added scripts working, your arrest script is however commented out.
http://pastebin.com/tt20c73U