Added variable DZE_ForceNameTagsInTrader

This commit is contained in:
Florian Kinder
2014-02-21 00:53:44 +01:00
parent a3885ac187
commit 4f82e8e380
20 changed files with 230 additions and 170 deletions

View File

@@ -0,0 +1,15 @@
private ["_traderName","_showText"];
_traderName = _this select 0;
_showText = _this select 1;
if (_showText) then {
cutText [format [localize "STR_EPOCH_TRADER_ENTER", _traderName], "PLAIN DOWN"];
};
if (DZE_ForceNameTagsInTrader) then {
player setVariable["DZE_display_name_tmp", (player getVariable "DZE_display_name")];
player setVariable["DZE_display_name", true, true];
};
canbuild = false;
inTraderCity = _traderName;

View File

@@ -0,0 +1,14 @@
private ["_traderName","_showText"];
_traderName = _this select 0;
_showText = _this select 1;
if (_showText) then {
cutText [format [localize "STR_EPOCH_TRADER_LEAVE", _traderName], "PLAIN DOWN"];
};
if (DZE_ForceNameTagsInTrader) then {
player setVariable["DZE_display_name", (player getVariable "DZE_display_name_old"), true];
};
canbuild = true;
inTraderCity = "Any";