mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-21 02:46:29 +03:00
Avoids setVariable value restrictions for players with special characters in their name. Also avoids issues with storing non-ASCII characters from player names in DB inventory field.
15 lines
425 B
Plaintext
15 lines
425 B
Plaintext
private ["_closePeople","_friendUID","_friendName"];
|
|
|
|
lbClear 7101;
|
|
_closePeople = player nearEntities ["CAManBase", 10];
|
|
if (!DZE_doorManagementMustBeClose) then {_closePeople = playableUnits};
|
|
Humans = [];
|
|
{
|
|
if (isPlayer _x) then {
|
|
_friendUID = [_x] call FNC_GetPlayerUID;
|
|
_friendName = name _x;
|
|
Humans set [count Humans, [_friendUID,toArray _friendName]];
|
|
lbAdd [7101, _friendName];
|
|
};
|
|
} forEach _closePeople;
|