So I have installed the handcuff mod and it works, have changed it so trader dont get cuffed as well, what I have done is allowed heros with +20000 humanity and bandits with -10000 humanity to be able to cuff, unfortunately they show the same "Investigation Menu" in the scroll options, what I want is 1 for heros and 1 for bandits, first script is what I have, second is what might work, what I need to know is will it work?
Current Script:
if ((player getVariable"humanity") >= 20000 or (player getVariable"humanity") >= -10000) then {
if (_isMan and _isAlive and !inSafeZone and !_isZombie and !_isAnimal && !(_traderType in serverTraders)) 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;
};
};
Looking at replacing it with this, but will it work?
if ((player getVariable"humanity") >= 20000 then {
if (_isMan and _isAlive and !inSafeZone and !_isZombie and !_isAnimal && !(_traderType in serverTraders)) 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 getVariable"humanity") <= 10000 then {
if (_isMan and _isAlive and !inSafeZone and !_isZombie and !_isAnimal && !(_traderType in serverTraders)) then {
if (s_player_arrest < 0) then {
s_player_arrest = player addaction ['<t color="#0074E8">' + "Robbery Menu" + '</t>', "Scripts\Investigation\investigation.sqf","",100,false,true,"", ""];
} else {
player removeAction s_player_arrest;
s_player_arrest = -1;
};
};
Question
SgtSparraGump
Hi Everyone,
So I have installed the handcuff mod and it works, have changed it so trader dont get cuffed as well, what I have done is allowed heros with +20000 humanity and bandits with -10000 humanity to be able to cuff, unfortunately they show the same "Investigation Menu" in the scroll options, what I want is 1 for heros and 1 for bandits, first script is what I have, second is what might work, what I need to know is will it work?
Current Script:
Looking at replacing it with this, but will it work?
Link to comment
Share on other sites
11 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now