mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-22 20:12:20 +03:00
Added variable DZE_ForceNameTagsInTrader
This commit is contained in:
15
SQF/dayz_code/compile/trader_enter.sqf
Normal file
15
SQF/dayz_code/compile/trader_enter.sqf
Normal 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;
|
||||
14
SQF/dayz_code/compile/trader_leave.sqf
Normal file
14
SQF/dayz_code/compile/trader_leave.sqf
Normal 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";
|
||||
Reference in New Issue
Block a user