Fix Adv Trade localized string spacing

This commit is contained in:
ebaydayz
2016-05-02 19:51:48 -04:00
parent 8d82693c1b
commit d361abaec3
7 changed files with 19 additions and 18 deletions

View File

@@ -211,7 +211,7 @@ if (isPlayer cursorTarget) then {
};
if (_unit isKindOf "Man") then {
// should only fire if cursor target is man and not vehicle
_charID = _unit getVariable ["CharacterID", 0];
_charID = _unit getVariable ["CharacterID","0"];
_friendlies = player getVariable ["friendlies", []];
if !(_charID in _friendlies) then {
r_action = true;

View File

@@ -15,7 +15,7 @@ if ((vehicle player) == player) then {
if (DZE_BackpackAntiTheft) then {
_friendlies = player getVariable ["friendlies",[]];
_rcharID = _cTarget getVariable ["CharacterID","0"];
if (!canbuild && {_cTarget isKindOf "Man"} && {alive _cTarget} && {!((typeOf _cTarget) in serverTraders)} && {!(_rcharID in _friendlies)} && {(player distance _cTarget) < 12}) then {
if (!canbuild && {_cTarget isKindOf "Man"} && {alive _cTarget} && {isPlayer _cTarget} && {!(_rcharID in _friendlies)} && {(player distance _cTarget) < 12}) then {
localize "STR_EPOCH_PLAYER_316" call dayz_rollingMessages;
_display closeDisplay 1;
};