mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Update all cutText to dayz_rollingMessages
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
private ["_objectID","_objectUID","_obj","_ownerID","_dir","_pos","_holder","_weapons","_magazines","_backpacks","_objWpnTypes","_objWpnQty","_countr","_alreadyPacking","_playerNear","_playerID","_claimedBy","_unlockedClass","_text","_nul","_objType"];
|
||||
|
||||
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_21","PLAIN DOWN"];};
|
||||
if (DZE_ActionInProgress) exitWith {localize "str_epoch_player_21" call dayz_rollingMessages;};
|
||||
DZE_ActionInProgress = true;
|
||||
|
||||
{player removeAction _x} count s_player_combi;
|
||||
@@ -21,7 +21,7 @@ if !(_objType in DZE_LockedStorage) exitWith {
|
||||
};
|
||||
|
||||
_playerNear = _obj call dze_isnearest_player;
|
||||
if (_playerNear) exitWith {DZE_ActionInProgress = false; cutText [localize "str_epoch_player_20","PLAIN DOWN"];};
|
||||
if (_playerNear) exitWith {DZE_ActionInProgress = false; localize "str_epoch_player_20" call dayz_rollingMessages;};
|
||||
|
||||
// Silently exit if object no longer exists || alive
|
||||
if (isNull _obj || !(alive _obj)) exitWith { DZE_ActionInProgress = false; };
|
||||
@@ -33,7 +33,7 @@ _alreadyPacking = _obj getVariable["packing",0];
|
||||
_claimedBy = _obj getVariable["claimed","0"];
|
||||
_ownerID = _obj getVariable["CharacterID","0"];
|
||||
|
||||
if (_alreadyPacking == 1) exitWith {DZE_ActionInProgress = false; cutText [format[(localize "str_epoch_player_124"),_text], "PLAIN DOWN"]};
|
||||
if (_alreadyPacking == 1) exitWith {DZE_ActionInProgress = false; format[localize "str_epoch_player_124",_text] call dayz_rollingMessages;};
|
||||
|
||||
// Promt user for password if _ownerID != dayz_playerUID
|
||||
if ((_ownerID == dayz_combination) || (_ownerID == dayz_playerUID)) then {
|
||||
@@ -123,11 +123,11 @@ if ((_ownerID == dayz_combination) || (_ownerID == dayz_playerUID)) then {
|
||||
} count _objWpnTypes;
|
||||
};
|
||||
|
||||
cutText [format[(localize "str_epoch_player_125"),_text], "PLAIN DOWN"];
|
||||
format[localize "str_epoch_player_125",_text] call dayz_rollingMessages;
|
||||
};
|
||||
} else {
|
||||
DZE_ActionInProgress = false;
|
||||
cutText [format[(localize "str_player_beinglooted"),_text] , "PLAIN DOWN"];
|
||||
format[localize "str_player_beinglooted",_text] call dayz_rollingMessages;
|
||||
};
|
||||
} else {
|
||||
["Working",0,[100,15,10,0]] call dayz_NutritionSystem;
|
||||
@@ -136,7 +136,7 @@ if ((_ownerID == dayz_combination) || (_ownerID == dayz_playerUID)) then {
|
||||
[player,"repair",0,false] call dayz_zombieSpeak;
|
||||
[player,25,true,(getPosATL player)] spawn player_alertZombies;
|
||||
uiSleep 5;
|
||||
cutText [format[(localize "str_epoch_player_126"),_text], "PLAIN DOWN"];
|
||||
format[localize "str_epoch_player_126",_text] call dayz_rollingMessages;
|
||||
};
|
||||
s_player_unlockvault = -1;
|
||||
DZE_ActionInProgress = false;
|
||||
|
||||
Reference in New Issue
Block a user