Added ability to force on or off the name tags

DZE_ForceNameTagsOff disables feature and DZE_ForceNameTags does not
give the player an option and just enables tags.
This commit is contained in:
[VB]AWOL
2013-10-27 09:56:48 -05:00
parent f280f89ceb
commit 80d31bce5f
2 changed files with 16 additions and 3 deletions

View File

@@ -37,9 +37,16 @@ if (_canPickLight and !dayz_hasLight and !_isPZombie) then {
s_player_removeflare = -1;
};
if (s_player_showname < 0 and !_isPZombie) then {
s_player_showname = player addAction ["Display Name (Yes)", "\z\addons\dayz_code\actions\display_name.sqf",true, 0, true, false, "",""];
s_player_showname1 = player addAction ["Display Name (No)", "\z\addons\dayz_code\actions\display_name.sqf",false, 0, true, false, "",""];
if (!DZE_ForceNameTagsOff)
if (s_player_showname < 0 and !_isPZombie) then {
if (DZE_ForceNameTags) then {
s_player_showname = 1;
player setVariable["DZE_display_name",true,true];
} else {
s_player_showname = player addAction ["Display Name (Yes)", "\z\addons\dayz_code\actions\display_name.sqf",true, 0, true, false, "",""];
s_player_showname1 = player addAction ["Display Name (No)", "\z\addons\dayz_code\actions\display_name.sqf",false, 0, true, false, "",""];
};
};
};
if(_isPZombie) then {