mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Continuation of 8035df0
This is important to have on publish to identify cheaters who spam
create objects in the database or create objects with bad inventory.
- Renamed variables to backport to vanilla
- Removed % and & due to code filtering in publicvariableval.txt
Changes in modular_build.sqf were the same as player_build.sqf.
Tested with building, upgrading buildable/vehicle/tent, downgrading,
buying a vehicle, destroying tent and removing an object.
22 lines
557 B
Plaintext
22 lines
557 B
Plaintext
/*
|
|
[_objectID,_objectUID] call server_deleteObjDirect;
|
|
*/
|
|
private["_id","_uid","_key"];
|
|
|
|
_id = _this select 0;
|
|
_uid = _this select 1;
|
|
|
|
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 DIRECT: SERVER deleted object with ID: %1", _id];
|
|
} else {
|
|
//Send request
|
|
_key = format["CHILD:310:%1:",_uid];
|
|
_key call server_hiveWrite;
|
|
diag_log format["DELETE DIRECT: SERVER deleted object with UID: %1", _uid];
|
|
};
|
|
}; |