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

@@ -4,6 +4,7 @@
private["_id","_uid","_key"];
_id = _this select 0;
_uid = _this select 1;
_activatingPlayer = _this select 2;
if (isServer) then {
//remove from database
@@ -12,14 +13,14 @@ if (isServer) then {
_key = format["CHILD:304:%1:",_id];
_key call server_hiveWrite;
#ifdef DZE_SERVER_DEBUG_HIVE
diag_log format["DELETE: Deleted by ID: %1",_id];
diag_log format["DELETE: %1 Deleted by ID: %2",_activatingPlayer,_id];
#endif
} else {
//Send request
_key = format["CHILD:310:%1:",_uid];
_key call server_hiveWrite;
#ifdef DZE_SERVER_DEBUG_HIVE
diag_log format["DELETE: Deleted by UID: %1",_uid];
diag_log format["DELETE: %1 Deleted by UID: %2",_activatingPlayer,_uid];
#endif
};
};

View File

@@ -1,10 +1,11 @@
private ["_isOK","_object","_worldspace","_location","_dir","_class","_uid","_key","_keySelected","_characterID","_donotusekey"];
private ["_activatingPlayer","_isOK","_object","_worldspace","_location","_dir","_class","_uid","_key","_keySelected","_characterID","_donotusekey"];
_object = _this select 0;
_worldspace = _this select 1;
_class = _this select 2;
_donotusekey = _this select 3;
_keySelected = _this select 4;
_activatingPlayer = _this select 5;
if(_donotusekey) then {
_isOK = true;
@@ -115,5 +116,5 @@ _key call server_hiveWrite;
PVDZE_veh_Init = _object;
publicVariable "PVDZE_veh_Init";
diag_log ("PUBLISH: Created " + (_class) + " with ID " + str(_uid));
diag_log ("PUBLISH: " + str(_activatingPlayer) + " Bought " + (_class) + " with ID " + str(_uid));
};