mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 04:23:13 +03:00
Send dayz_playerName as array
This avoids triggering PV value restrictions when the player has keywords or special characters in their name.
This commit is contained in:
@@ -1,25 +1,24 @@
|
||||
private ["_zombiebody"];
|
||||
private "_zombiebody";
|
||||
_zombiebody = _this select 0;
|
||||
// _qty = _this select 1;
|
||||
|
||||
if (local _zombiebody) then {
|
||||
_zombiebody addMagazine "ItemZombieParts";
|
||||
|
||||
[time, _zombiebody] spawn {
|
||||
private ["_timer", "_body"];
|
||||
[time, _zombiebody] spawn {
|
||||
private ["_timer","_body"];
|
||||
_timer = _this select 0;
|
||||
_body = _this select 1;
|
||||
_pos = getPosATL _body;
|
||||
while {(count magazines _body >0) && (time - _timer < 300) } do {
|
||||
while {(count magazines _body > 0) && (time - _timer < 300)} do {
|
||||
uiSleep 5;
|
||||
};
|
||||
|
||||
hideBody _body;
|
||||
|
||||
/* PVS/PVC - Skaronator */
|
||||
_inRange = _pos nearEntities ["CAManBase",100];
|
||||
{
|
||||
if(isPlayer _x && _x != player) then {
|
||||
if ((isPlayer _x) && {_x != player}) then {
|
||||
PVDZ_send = [_x,"HideBody",[_body]];
|
||||
publicVariableServer "PVDZ_send";
|
||||
};
|
||||
@@ -27,7 +26,6 @@ if (local _zombiebody) then {
|
||||
|
||||
uiSleep 5;
|
||||
deleteVehicle _body;
|
||||
true;
|
||||
true
|
||||
};
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user