Jump to content
!TS JORDAN

[Tutorial] Zipties Revised [Fully Working, With Gag and Blindfolds]

Recommended Posts

On 05/04/2017 at 4:07 AM, James Adams said:

Fantastic Script, working like a flaw except that both cops & civ cannot pull people out of the vehicle? @!TS JORDAN

Try changing core > function > fn_pullOutVeh to this :

/*
    File: fn_pullOutVeh.sqf
    Author: Bryan "Tonic" Boardwine

    Description:

*/
if (pisNull objectParent player) exitWith {};
if (player getVariable "restrained") then {
    detach player;
    player setVariable ["Escorting",false,true];
    player setVariable ["transporting",false,true];
    life_disable_getOut = false;
    player action ["Eject", vehicle player];
    titleText[localize "STR_NOTF_PulledOut","PLAIN"];
    titleFadeOut 4;
    life_disable_getIn = true;
} else {
	if (player getVariable "tied") then {
		detach player;
		player setVariable ["Escorting",false,true];
		player setVariable ["transporting",false,true];
		life_disable_getOut = false;
		player action ["Eject", vehicle player];
		titleText[localize "STR_NOTF_PulledOut","PLAIN"];
		titleFadeOut 4;
		life_disable_getIn = true;
	} else {
		player action ["Eject", vehicle player];
		titleText[localize "STR_NOTF_PulledOut","PLAIN"];
		titleFadeOut 4;
	};
};

 

Link to post
Share on other sites
7 hours ago, ★c0ry★ said:

I have a color effect script in my server and whenever I remove the blindfold from someone it removes the effect. Can someone tell me how I can fix this so when you remove the blindfold it keeps the color effect script.

hmm is it a script that makes the color thing there? If so just run the script at the end of the un blindfold script

Link to post
Share on other sites
13 hours ago, !TS JORDAN said:

hmm is it a script that makes the color thing there? If so just run the script at the end of the un blindfold script

I have it set to run the script when you spawn in but how would I make it so it executes again when you take the blind fold off? Sorry I'm kinda a newb.

Link to post
Share on other sites
On 12/04/2017 at 0:59 AM, ★c0ry★ said:

I have it set to run the script when you spawn in but how would I make it so it executes again when you take the blind fold off? Sorry I'm kinda a newb.

What code are you using to exec the the script? 

If so just pasting it at the bottom of the uniteb script should work....

Link to post
Share on other sites
On 14/04/2017 at 0:13 PM, Kangaroo said:

All is great & working, although I cant ziptie someone after knocking them out... it seems as though the action to do so isnt valid?? 

There is a fix, its the addAction not working to well, I think its one of my comments on page 3 or 4? I set a variable, just have a quick look :D

Link to post
Share on other sites
11 hours ago, !TS JORDAN said:

There is a fix, its the addAction not working to well, I think its one of my comments on page 3 or 4? I set a variable, just have a quick look :D

Still not working.. Its as if its not calling it.. No error or anything either... So whats going on.. I'm on 5.0

Link to post
Share on other sites
On 2017-4-27 at 9:48 PM, Dark said:

@!TS JORDAN why are you checking for the escorting var twice in the civ case?

Oh and why aren't you setting any of these vars to false in the init?

 

It doesn't matter too much because if they are not created when I fetch the var it defaults to false...
Read the wiki? 

https://community.bistudio.com/wiki/getVariable

Link to post
Share on other sites

 

@!TS JORDAN

1- I want remove seize weapons button

2-I want ziptie person this add action -scrool menu- how can ı do ?

3- Is it possible to deactivated the map and the phone (Y menu ) When the player can no longer see ?

How can ı do ?

 

fn_actionKeyHandler.sqf

https://pastebin.com/RkFXzRR6

 

 fn_copInteractionMenu.sqf

https://pastebin.com/1ZVcVZPV

@silencedaxis

 

Edited by Kadir_Sexy
Link to post
Share on other sites
On 11.04.2017 at 4:55 AM, !TS JORDAN said:

Try changing core > function > fn_pullOutVeh to this :

/*
    File: fn_pullOutVeh.sqf
    Author: Bryan "Tonic" Boardwine

    Description:

*/
if (pisNull objectParent player) exitWith {};
if (player getVariable "restrained") then {
    detach player;
    player setVariable ["Escorting",false,true];
    player setVariable ["transporting",false,true];
    life_disable_getOut = false;
    player action ["Eject", vehicle player];
    titleText[localize "STR_NOTF_PulledOut","PLAIN"];
    titleFadeOut 4;
    life_disable_getIn = true;
} else {
	if (player getVariable "tied") then {
		detach player;
		player setVariable ["Escorting",false,true];
		player setVariable ["transporting",false,true];
		life_disable_getOut = false;
		player action ["Eject", vehicle player];
		titleText[localize "STR_NOTF_PulledOut","PLAIN"];
		titleFadeOut 4;
		life_disable_getIn = true;
	} else {
		player action ["Eject", vehicle player];
		titleText[localize "STR_NOTF_PulledOut","PLAIN"];
		titleFadeOut 4;
	};
};

 

16:45:41 Error in expression <fe_fnc_pullOutVeh]"

if (pisNull objectParent player) exitWith {};
if (pl>
16:45:41   Error position: <objectParent player) exitWith {};
if (pl>
16:45:41   Error Missing )
16:45:41 File core\functions\fn_pullOutVeh.sqf [life_fnc_pullOutVeh], line 8
16:45:41 Error in expression <fe_fnc_pullOutVeh]"

if (pisNull objectParent player) exitWith {};
if (pl>
16:45:41   Error position: <objectParent player) exitWith {};
if (pl>
16:45:41   Error Missing )
16:45:41 File core\functions\fn_pullOutVeh.sqf [life_fnc_pullOutVeh], line 8

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.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.