Guest Posted January 4, 2017 Share Posted January 4, 2017 4 hours ago, Dark said: Alright well GJ then - I prefer the pat down to the seize anyways - it's more realistic. I have coded a few things and helped out on quite a bit - so I do understand which is why I went out of my way to state his name etc. Anyways, like I said, apologies and GJ. The 2 codes are completely different. Quote Link to comment Share on other sites More sharing options...
Dark Posted January 5, 2017 Share Posted January 5, 2017 16 hours ago, John Meiers said: The 2 codes are completely different. Pretty sure we've been through this. Go troll elsewhere. @!TS JORDAN script works perfectly. 1 Quote Link to comment Share on other sites More sharing options...
Dark Posted January 6, 2017 Share Posted January 6, 2017 1 hour ago, John Meiers said: Lol troll, ah I remember now why you were banned from arma life rpg . You're cute. That was a personal issue that trinity had with me. No need to bring it out here. Quote Link to comment Share on other sites More sharing options...
MoNtEcRiStO© Posted January 6, 2017 Share Posted January 6, 2017 @Dark Rules of the forums: Be respectful to other members Do not impersonate staff. Thank to be active and helping people. Quote Link to comment Share on other sites More sharing options...
Quinn Posted January 8, 2017 Share Posted January 8, 2017 Does the original post work or would I need to go through all the changes in the comments below? Quote Link to comment Share on other sites More sharing options...
Rasmus Posted January 8, 2017 Share Posted January 8, 2017 (edited) 2 hours ago, Quinn said: Does the original post work or would I need to go through all the changes in the comments below? Original post works 100% for me on framework 5.0.0 Edited January 8, 2017 by Rasmus Quote Link to comment Share on other sites More sharing options...
ToxicRageTv Posted January 8, 2017 Share Posted January 8, 2017 (edited) Got everything working. Is there a way to force drop all the clothing as well? Edited January 8, 2017 by ToxicRageTv Quote Link to comment Share on other sites More sharing options...
immortalchaos Posted January 17, 2017 Share Posted January 17, 2017 How do i seize the weapons on the ground? The patdown is working but when i try to seize the weapons on the ground nothing happens. Quote Link to comment Share on other sites More sharing options...
Rogue Posted January 18, 2017 Share Posted January 18, 2017 does this come with a soundfile? Quote Link to comment Share on other sites More sharing options...
!TS JORDAN Posted January 18, 2017 Author Share Posted January 18, 2017 1 hour ago, Rogue said: does this come with a soundfile? nope Quote Link to comment Share on other sites More sharing options...
Rogue Posted January 20, 2017 Share Posted January 20, 2017 On 18/01/2017 at 1:37 PM, !TS JORDAN said: nope then why did you put the code in for one? [_unit,"patdown"] remoteExec ["life_fnc_say3D",RANY]; Quote Link to comment Share on other sites More sharing options...
!TS JORDAN Posted January 20, 2017 Author Share Posted January 20, 2017 Just now, Rogue said: then why did you put the code in for one? [_unit,"patdown"] remoteExec ["life_fnc_say3D",RANY]; because i was testing, i deleted the soundfile after i made the script, if you want one go find one i aint spoonfeeding you everything 1 Quote Link to comment Share on other sites More sharing options...
Rogue Posted January 20, 2017 Share Posted January 20, 2017 Just now, !TS JORDAN said: because i was testing, i deleted the soundfile after i made the script, if you want one go find one i aint spoonfeeding you everything I have found one, why are you so rude to everyone? No need to be a dick, I asked a simple question Quote Link to comment Share on other sites More sharing options...
!TS JORDAN Posted January 20, 2017 Author Share Posted January 20, 2017 Just now, Rogue said: I have found one, why are you so rude to everyone? No need to be a dick, I asked a simple question Aight Quote Link to comment Share on other sites More sharing options...
ToxicRageTv Posted February 2, 2017 Share Posted February 2, 2017 (edited) @!TS JORDAN How would i add it so it would drop the clothing as well. on another post @IceEagle132 said to put removeUniform player; but im not sure where Edited February 2, 2017 by ToxicRageTv Quote Link to comment Share on other sites More sharing options...
!TS JORDAN Posted February 3, 2017 Author Share Posted February 3, 2017 18 hours ago, ToxicRageTv said: @!TS JORDAN How would i add it so it would drop the clothing as well. on another post @IceEagle132 said to put removeUniform player; but im not sure where Try: /* Author: !TS JORDAN For: AltisLifeRPG Community Description: Takes a players weapons and mags, then drops them on the ground. */ private["_hgItems","_holder","_items","_pwItems","_safeItems","_swItems","_weps","_unit"]; _safeItems = ["FirstAidKit","ItemRadio","ItemMap","ItemCompass","ItemGPS","ItemWatch","NVGoggles","Rangefinder","Binocular"]; _unit = player; [_unit,"patdown"] remoteExec ["life_fnc_say3D",RANY]; titleText[localize "Your weapons are removed.","PLAIN"]; _weps = []; _pwItems = primaryWeaponItems player; _swItems = secondaryWeaponItems player; _hgitems = handGunItems player; _mags = magazinesAmmoFull player; {player removeMagazine _x} foreach (magazines player); if(primaryWeapon player != "") then { _weps pushBack (primaryWeapon player); player removeWeapon (primaryWeapon player); }; if(uniform player != "") then { _weps pushBack (uniform player); player removeUniform player; }; if(backpack player != "") then { _weps pushBack (backpack player); player removeBackpack player; }; if(vest player != "") then { _weps pushBack (vest player); player removeVest player; }; if(secondaryWeapon player != "") then { _weps pushBack (secondaryWeapon player); player removeWeapon (secondaryWeapon player); }; if(handgunWeapon player != "") then { _weps pushBack (handgunWeapon player); player removeWeapon (handgunWeapon player); }; { _items = _x; { player unassignItem _x; player removeItem _x; }forEach _items; }forEach [_hgItems, _pwItems, _swItems]; { if (!(_x in _safeItems)) then { player removeItem _x; _weps pushBack _x; }; }forEach (weapons player); _holder = createVehicle [ "GroundWeaponHolder", getPosATL player, [], 0, "CAN_COLLIDE" ]; { _holder addWeaponCargoGlobal [_x,1]; }forEach _weps; { _holder addMagazineCargoGlobal [_x select 0,1]; }forEach _mags; { _items = _x; { _holder addItemCargoGlobal [_x,1]; }forEach _items; }forEach [_hgItems, _pwItems, _swItems]; call life_fnc_saveGear; Quote Link to comment Share on other sites More sharing options...
Hyper4u.'<3 Posted February 10, 2017 Share Posted February 10, 2017 On 2017-02-03 at 1:37 PM, !TS JORDAN said: Try: /* Author: !TS JORDAN For: AltisLifeRPG Community Description: Takes a players weapons and mags, then drops them on the ground. */ private["_hgItems","_holder","_items","_pwItems","_safeItems","_swItems","_weps","_unit"]; _safeItems = ["FirstAidKit","ItemRadio","ItemMap","ItemCompass","ItemGPS","ItemWatch","NVGoggles","Rangefinder","Binocular"]; _unit = player; [_unit,"patdown"] remoteExec ["life_fnc_say3D",RANY]; titleText[localize "Your weapons are removed.","PLAIN"]; _weps = []; _pwItems = primaryWeaponItems player; _swItems = secondaryWeaponItems player; _hgitems = handGunItems player; _mags = magazinesAmmoFull player; {player removeMagazine _x} foreach (magazines player); if(primaryWeapon player != "") then { _weps pushBack (primaryWeapon player); player removeWeapon (primaryWeapon player); }; if(uniform player != "") then { _weps pushBack (uniform player); player removeUniform player; }; if(backpack player != "") then { _weps pushBack (backpack player); player removeBackpack player; }; if(vest player != "") then { _weps pushBack (vest player); player removeVest player; }; if(secondaryWeapon player != "") then { _weps pushBack (secondaryWeapon player); player removeWeapon (secondaryWeapon player); }; if(handgunWeapon player != "") then { _weps pushBack (handgunWeapon player); player removeWeapon (handgunWeapon player); }; { _items = _x; { player unassignItem _x; player removeItem _x; }forEach _items; }forEach [_hgItems, _pwItems, _swItems]; { if (!(_x in _safeItems)) then { player removeItem _x; _weps pushBack _x; }; }forEach (weapons player); _holder = createVehicle [ "GroundWeaponHolder", getPosATL player, [], 0, "CAN_COLLIDE" ]; { _holder addWeaponCargoGlobal [_x,1]; }forEach _weps; { _holder addMagazineCargoGlobal [_x select 0,1]; }forEach _mags; { _items = _x; { _holder addItemCargoGlobal [_x,1]; }forEach _items; }forEach [_hgItems, _pwItems, _swItems]; call life_fnc_saveGear; Doesnt work everything stops working when i used this one Quote Link to comment Share on other sites More sharing options...
!TS JORDAN Posted February 11, 2017 Author Share Posted February 11, 2017 10 hours ago, Hyper4u.'<3 said: Doesnt work everything stops working when i used this one Can you provide error logs please, client and server? Quote Link to comment Share on other sites More sharing options...
Hyper4u.'<3 Posted February 11, 2017 Share Posted February 11, 2017 6 hours ago, !TS JORDAN said: Can you provide error logs please, client and server? This is the error im getting Quote Error in expression <_weps pushBack (uniform player); player removeUniform player; }; if(backpack p> Error position: <removeUniform player; }; if(backpack p> Error Missing ; File mpmissions\__cur_mp.Altis\core\cop\fn_seizeClient.sqf, line 35 Error in expression <_weps pushBack (uniform player); player removeUniform player; }; if(backpack p> Error position: <removeUniform player; }; if(backpack p> Error Missing ; File mpmissions\__cur_mp.Altis\core\cop\fn_seizeClient.sqf, line 35 Quote Link to comment Share on other sites More sharing options...
!TS JORDAN Posted February 12, 2017 Author Share Posted February 12, 2017 @Hyper4u.'<3 /* Author: !TS JORDAN For: AltisLifeRPG Community Description: Takes a players weapons and mags, then drops them on the ground. */ private["_hgItems","_holder","_items","_pwItems","_safeItems","_swItems","_weps","_unit"]; _safeItems = ["FirstAidKit","ItemRadio","ItemMap","ItemCompass","ItemGPS","ItemWatch","NVGoggles","Rangefinder","Binocular"]; _unit = player; [_unit,"patdown"] remoteExec ["life_fnc_say3D",RANY]; titleText[localize "Your weapons are removed.","PLAIN"]; _weps = []; _pwItems = primaryWeaponItems player; _swItems = secondaryWeaponItems player; _hgitems = handGunItems player; _mags = magazinesAmmoFull player; {player removeMagazine _x} foreach (magazines player); if(primaryWeapon player != "") then { _weps pushBack (primaryWeapon player); player removeWeapon (primaryWeapon player); }; if(uniform player != "") then { _weps pushBack (uniform player); removeUniform player; }; if(backpack player != "") then { _weps pushBack (backpack player); removeBackpack player; }; if(vest player != "") then { _weps pushBack (vest player); removeVest player; }; if(secondaryWeapon player != "") then { _weps pushBack (secondaryWeapon player); player removeWeapon (secondaryWeapon player); }; if(handgunWeapon player != "") then { _weps pushBack (handgunWeapon player); player removeWeapon (handgunWeapon player); }; { _items = _x; { player unassignItem _x; player removeItem _x; }forEach _items; }forEach [_hgItems, _pwItems, _swItems]; { if (!(_x in _safeItems)) then { player removeItem _x; _weps pushBack _x; }; }forEach (weapons player); _holder = createVehicle [ "GroundWeaponHolder", getPosATL player, [], 0, "CAN_COLLIDE" ]; { _holder addWeaponCargoGlobal [_x,1]; }forEach _weps; { _holder addMagazineCargoGlobal [_x select 0,1]; }forEach _mags; { _items = _x; { _holder addItemCargoGlobal [_x,1]; }forEach _items; }forEach [_hgItems, _pwItems, _swItems]; call life_fnc_saveGear; Quote Link to comment Share on other sites More sharing options...
nediss Posted February 12, 2017 Share Posted February 12, 2017 just wanted to let you know that you should change the german stringtable to "Waffen beschlagnahmen" If not, nvm it's just the correct version Quote Link to comment Share on other sites More sharing options...
Guest Posted February 12, 2017 Share Posted February 12, 2017 On 11/30/2016 at 4:32 PM, !TS JORDAN said: Today I will be sharing 2 scripts with the community, one I made myself, one I cannot find the original author for, If the original author for the SeizeObjects script would like to come forward I will put them as the right full owner. Many people have been asking for a patdown script so i will introduce one today. NOTE: People on 4.4r3 will only have to edit the file "seizeClient" for the patdown. People not using 4.4r3 will have to follow all steps. Step 1: Go to core>>actions and create a file called "fn_seizePlayerAction.sqf" inside #include "..\..\script_macros.hpp" /* File: fn_seizePlayerAction.sqf Author: Bryan "Tonic" Boardwine Description: Starts the seize process.. Based off Tonic's fn_searchAction.sqf */ params [ ["_unit",objNull,[objNull]] ]; if (isNull _unit) exitWith {}; sleep 2; if (player distance _unit > 5 || !alive player || !alive _unit) exitWith {hint localize "STR_NOTF_CannotSeizePerson"}; [player] remoteExec ["life_fnc_seizeClient",_unit]; life_action_inUse = false; NOTE: That script is Tonics 4.4r3 framework. Just calls the patdown script. Step 2: Go to core>>cop and create a file called "fn_seizeClient.sqf" inside /* Author: !TS JORDAN For: AltisLifeRPG Community Description: Takes a players weapons and mags, then drops them on the ground. */ private["_hgItems","_holder","_items","_pwItems","_safeItems","_swItems","_weps","_unit"]; _safeItems = ["FirstAidKit","ItemRadio","ItemMap","ItemCompass","ItemGPS","ItemWatch","NVGoggles","Rangefinder","Binocular"]; _unit = player; [_unit,"patdown"] remoteExec ["life_fnc_say3D",RANY]; titleText[localize "Your weapons are removed.","PLAIN"]; _weps = []; _pwItems = primaryWeaponItems player; _swItems = secondaryWeaponItems player; _hgitems = handGunItems player; _mags = magazinesAmmoFull player; {player removeMagazine _x} foreach (magazines player); if(primaryWeapon player != "") then { _weps pushBack (primaryWeapon player); player removeWeapon (primaryWeapon player); }; if(secondaryWeapon player != "") then { _weps pushBack (secondaryWeapon player); player removeWeapon (secondaryWeapon player); }; if(handgunWeapon player != "") then { _weps pushBack (handgunWeapon player); player removeWeapon (handgunWeapon player); }; { _items = _x; { player unassignItem _x; player removeItem _x; }forEach _items; }forEach [_hgItems, _pwItems, _swItems]; { if (!(_x in _safeItems)) then { player removeItem _x; _weps pushBack _x; }; }forEach (weapons player); _holder = createVehicle [ "GroundWeaponHolder", getPosATL player, [], 0, "CAN_COLLIDE" ]; { _holder addWeaponCargoGlobal [_x,1]; }forEach _weps; { _holder addMagazineCargoGlobal [_x select 0,1]; }forEach _mags; { _items = _x; { _holder addItemCargoGlobal [_x,1]; }forEach _items; }forEach [_hgItems, _pwItems, _swItems]; call life_fnc_saveGear; Step 3: Go to core>>cop and create a file called "fn_seizeObjects.sqf" inside /* BLAH BLAH */ _clear = nearestObjects [player,["weaponholder"],3]; _clear = _clear + nearestObjects [player,["GroundWeaponHolder"],3]; _clear = _clear + nearestObjects [player,["WeaponHolderSimulated"],3]; _destroyed = 0; for "_i" from 0 to count _clear - 1 do { _destroyed = _destroyed + 1; deleteVehicle (_clear select _i); }; titleText[format["Seized %1 ground objects in the vicinity.", _destroyed],"PLAIN"]; Step 4: Go to core>>cop>>copInteractionMenu.sqf and add //SeizeWeapons Button _Btn8 ctrlSetText localize "STR_pInAct_Seize"; _Btn8 buttonSetAction "[life_pInact_curTarget] spawn life_fnc_seizePlayerAction; closeDialog 0;";. NOTE: Some people may already have button 8 in use. Just add the extra button in the dialog and define them further up in copInteractionMenu Step 5: Go to functions.hpp (root folder) add under actions class class seizePlayerAction {}; add under cop class class seizeObjects {}; class seizeClient {}; Step 6: Go to CfgRemoteExec.hpp and add under client functions F(life_fnc_seizeClient,CLIENT) F(life_fnc_seizeObjects,CLIENT) Step 7: Go to core>>setupActions.sqf under switch (playerSide) do { case civilian: { You're actions are here }; add case west: { life_actions pushBack (player addAction["Seize Objects",life_fnc_seizeObjects,cursorTarget,0,false,false,"",'((count(nearestObjects [player,["WeaponHolder"],3])>0) || (count(nearestObjects [player,["GroundWeaponHolder"],3])>0) || (count(nearestObjects [player,["WeaponHolderSimulated"],3])>0))']); }; Step 8: Go to stringtable.xml and add <Key ID="STR_pInAct_Seize"> <Original>Seize Weapons</Original> <Czech>zabavili zbraně</Czech> <Spanish>Confiscar Armas</Spanish> <Russian></Russian> <German>Seize Waffen</German> <French>Saisir les armes</French> <Italian>cogliere Armi</Italian> <Portuguese>Apreender Armas</Portuguese> <Polish>Chwytaj broń</Polish> </Key> And we are done. I don't think I missed anything if I did then well comment and ill fix it up. Enjoy your day. Hey pat down doesn't come up on cop menu. But the seize objects works! Quote Link to comment Share on other sites More sharing options...
Hyper4u.'<3 Posted February 12, 2017 Share Posted February 12, 2017 8 hours ago, Neon said: Hey pat down doesn't come up on cop menu. But the seize objects works! in 4.4r3 Seize Weapons = Pat Down Quote Link to comment Share on other sites More sharing options...
Aim Posted February 12, 2017 Share Posted February 12, 2017 5 hours ago, Hyper4u.'<3 said: in 4.4r3 Seize Weapons = Pat Down Well seize weapon only happens when the items are on the ground. Pat down happens when the weapons are person and you pat them down to get the items on the ground to seize them. We'll the pat down part does not work, I can't get them off the player. From Neon Quote Link to comment Share on other sites More sharing options...
Hyper4u.'<3 Posted February 12, 2017 Share Posted February 12, 2017 1 hour ago, Aim said: Well seize weapon only happens when the items are on the ground. Pat down happens when the weapons are person and you pat them down to get the items on the ground to seize them. We'll the pat down part does not work, I can't get them off the player. From Neon No in the windows menu there is a Seize Weapon thing and when your press it it will pat down the weapons in 4.4.r3 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.