added server side logging of purchases of vehicles and removals

This commit is contained in:
[VB]AWOL
2013-10-27 10:22:29 -05:00
parent 80d31bce5f
commit aa14a03c4e
17 changed files with 36 additions and 31 deletions

View File

@@ -1,11 +1,13 @@
/*
[_obj] spawn player_packVault;
*/
private ["_obj","_ownerID","_objectID","_objectUID","_alreadyPacking","_location1","_location2","_dir","_pos","_bag","_holder","_weapons","_magazines","_backpacks","_objWpnTypes","_objWpnQty","_countr","_packedClass","_text","_playerNear"];
private ["_activatingPlayer","_obj","_ownerID","_objectID","_objectUID","_alreadyPacking","_location1","_location2","_dir","_pos","_bag","_holder","_weapons","_magazines","_backpacks","_objWpnTypes","_objWpnQty","_countr","_packedClass","_text","_playerNear"];
if(TradeInprogress) exitWith { cutText ["That is already being packed." , "PLAIN DOWN"]; };
TradeInprogress = true;
_activatingPlayer = player;
_obj = _this;
_packedClass = getText (configFile >> "CfgVehicles" >> (typeOf _obj) >> "packedClass");
@@ -60,7 +62,7 @@ if(!isNull _obj and alive _obj) then {
_backpacks = getBackpackCargo _obj;
// Remove from database
PVDZE_obj_Delete = [_objectID,_objectUID];
PVDZE_obj_Delete = [_objectID,_objectUID,_activatingPlayer];
publicVariableServer "PVDZE_obj_Delete";
// Set down vault "take" item