Hi
I want to make a Superhero and Superbandit on my Server.
i do some changes in fn_selfaction.
if ((_traderMenu select 2) == "friendly") then {
_humanity_logic = (_humanity < -10000);
};
if ((_traderMenu select 2) == "hostile") then {
_low_high = localize "STR_EPOCH_ACTIONS_HUMANITY_HIGH";
_humanity_logic = (_humanity > -10000);
};
if ((_traderMenu select 2) == "hero") then {
_humanity_logic = (_humanity < 10000);
};
if ((_traderMenu select 2) == "superhero") then {
_humanity_logic = (_humanity < 100000);
};
if ((_traderMenu select 2) == "superhostile") then {
_humanity_logic = (_humanity < -100000);
};
if (_humanity_logic) then {
_cancel = player addAction [format[localize "STR_EPOCH_ACTIONS_HUMANITY",_low_high], "\z\addons\dayz_code\actions\trade_cancel.sqf",["na"], 0, true, false];
s_player_parts set [count s_player_parts,_cancel];
} else {
I add the red marked vor SH and SB, and i added the traders in server traders.
// Superbandit
menu_SBH_Alpha_Soldier3 = [
[["Airvehicles Armed",6001],["Tanks",6003],["TWS Weapons",6005]],
[],
"superhostile"
];
// Superhero
menu_SBH_Alpha_Soldier1 = [
[["Airvehicles Armed",6000],["Tanks",6002],["TWS Weapons",6004]],
[],
"superhero"
];
My problem now is u can trade with any + Humanity with the superhero trader. but i want to have that only Player with over 100k humanity can trade.
Can someone tell me where the misstake is?