mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-28 18:51:50 +03:00
Tidyness changes
This changes a few functions that were being used to use the already defined variables instead Fixed a few string issues with Advanced trading and plot managment.
This commit is contained in:
@@ -440,7 +440,7 @@ if (_canBuild select 0) then {
|
||||
_tmpbuilt setVariable ["ownerPUID",_playerUID,true];
|
||||
PVDZ_obj_Publish = [_combination,_tmpbuilt,[_dir,_location,_playerUID],_classname];
|
||||
if (_lockable == 3) then {
|
||||
_friendsArr = [[([player] call FNC_GetPlayerUID),(name player)]];
|
||||
_friendsArr = [[_playerUID,(name player)]];
|
||||
_tmpbuilt setVariable ["doorfriends", _friendsArr, true];
|
||||
PVDZ_obj_Publish = [_combination,_tmpbuilt,[_dir,_location,_playerUID, _vector], _friendsArr];
|
||||
};
|
||||
@@ -461,7 +461,7 @@ if (_canBuild select 0) then {
|
||||
if (DZE_permanentPlot) then {
|
||||
_tmpbuilt setVariable ["ownerPUID",_playerUID,true];
|
||||
if (_canBuild select 1) then {
|
||||
_friendsArr = [[([player] call FNC_GetPlayerUID),(name player)]];
|
||||
_friendsArr = [[_playerUID,(name player)]];
|
||||
_tmpbuilt setVariable ["plotfriends", _friendsArr, true];
|
||||
PVDZ_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location,_playerUID],_friendsArr];
|
||||
} else {
|
||||
@@ -477,7 +477,6 @@ if (_canBuild select 0) then {
|
||||
deleteVehicle _tmpbuilt;
|
||||
localize "str_epoch_player_46" call dayz_rollingMessages;
|
||||
};
|
||||
|
||||
} else {
|
||||
r_interrupt = false;
|
||||
if (vehicle player == player) then {
|
||||
@@ -489,7 +488,6 @@ if (_canBuild select 0) then {
|
||||
|
||||
localize "str_epoch_player_46" call dayz_rollingMessages;
|
||||
};
|
||||
|
||||
} else {
|
||||
format[localize "str_epoch_player_47",_text,_reason] call dayz_rollingMessages;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user