mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
* player_onPause fixes Properly displays the right message now for why you can't abort. * Door Management/Plot Management isServer changes Removes isServer, these are run on the client only so no need for this. * dayz_server private tags Fix a few missing private tags and remove a _forEachIndex tag. Remove unused 1.0.5.1 dayz_server.pbo as it's no longer valid/needed
22 lines
633 B
Plaintext
22 lines
633 B
Plaintext
/*
|
|
[_objectID,_objectUID] call server_deleteObj;
|
|
*/
|
|
private["_id","_uid","_key","_activatingPlayer"];
|
|
_id = _this select 0;
|
|
_uid = _this select 1;
|
|
_activatingPlayer = _this select 2;
|
|
|
|
if (isServer) then {
|
|
//remove from database
|
|
if (parseNumber _id > 0) then {
|
|
//Send request
|
|
_key = format["CHILD:304:%1:",_id];
|
|
_key call server_hiveWrite;
|
|
diag_log format["DELETE: Player %1 deleted object with ID: %2",_activatingPlayer,_id];
|
|
} else {
|
|
//Send request
|
|
_key = format["CHILD:310:%1:",_uid];
|
|
_key call server_hiveWrite;
|
|
diag_log format["DELETE: Player %1 deleted object with UID: %2",_activatingPlayer,_uid];
|
|
};
|
|
}; |