New Logsystem Script Side

This commit is contained in:
Skaronator
2013-11-16 15:42:52 +01:00
parent 2ef37f059e
commit 253d5ccc39
8 changed files with 49 additions and 18 deletions

View File

@@ -24,7 +24,7 @@ _bos = 0;
if(_buy_o_sell == "buy") then {
_qty = {_x == _part_in} count magazines player;
} else {
_obj = nearestObjects [(getPosATL player), [_part_in], dayz_sellDistance];
_obj = nearestObjects [(getPosATL player), [_part_in], dayz_sellDistance_vehicle];
_qty = count _obj;
_bos = 1;
};
@@ -81,7 +81,9 @@ if (_qty >= _qty_in) then {
if (_qty >= _qty_in) then {
//["PVDZE_obj_Trade",[_activatingPlayer,_traderID,_bos]] call callRpcProcedure;
PVDZE_obj_Trade = [_activatingPlayer,_traderID,_bos];
if (isNil _obj) then { _obj = "Unknown Vehicle" };
if (isNil inTraderCity) then { inTraderCity = "Unknown Trader City" };
PVDZE_obj_Trade = [_activatingPlayer,_traderID,_bos,_obj,inTraderCity];
publicVariableServer "PVDZE_obj_Trade";
//diag_log format["DEBUG Starting to wait for answer: %1", PVDZE_obj_Trade];