From a07d2b412e4529ec35dc3227c5a60843a80c025c Mon Sep 17 00:00:00 2001 From: eraser1 Date: Sun, 3 Jul 2016 20:13:20 -0500 Subject: [PATCH] save money --- @ExileServer/addons/a3_dms/config.cpp | 2 +- @ExileServer/addons/a3_dms/scripts/fn_PlayerAwardOnAIKill.sqf | 3 +++ README.md | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/@ExileServer/addons/a3_dms/config.cpp b/@ExileServer/addons/a3_dms/config.cpp index 1904eb4..c08aad9 100644 --- a/@ExileServer/addons/a3_dms/config.cpp +++ b/@ExileServer/addons/a3_dms/config.cpp @@ -4,7 +4,7 @@ class CfgPatches { units[] = {}; weapons[] = {}; - a3_DMS_version = "July 3, 2016"; + a3_DMS_version = "July 3, 2016 (2)"; requiredVersion = 1.36; requiredAddons[] = {"exile_client","exile_server_config"}; }; diff --git a/@ExileServer/addons/a3_dms/scripts/fn_PlayerAwardOnAIKill.sqf b/@ExileServer/addons/a3_dms/scripts/fn_PlayerAwardOnAIKill.sqf index 5d023ea..bb5ad75 100644 --- a/@ExileServer/addons/a3_dms/scripts/fn_PlayerAwardOnAIKill.sqf +++ b/@ExileServer/addons/a3_dms/scripts/fn_PlayerAwardOnAIKill.sqf @@ -83,6 +83,9 @@ if ((!isNull _playerObj) && {(_playerUID != "") && {_playerObj isKindOf "Exile_U // Send notification [_playerObj, "toastRequest", _msgParams] call ExileServer_system_network_send_to; + + // Update money in database + format["setPlayerMoney:%1:%2", _playerMoney, _playerObj getVariable ["ExileDatabaseID", 0]] call ExileServer_system_database_query_fireAndForget; }; }; diff --git a/README.md b/README.md index 367630e..b49725b 100644 --- a/README.md +++ b/README.md @@ -150,6 +150,9 @@ ___ # Changelog: ### Main Branch +### July 3, 2016 (8:15 PM CST-America): +* Player money will be saved on kill. + ### July 3, 2016 (1:40 AM CST-America): * Updated AI weapons to include new exile weapons. * Updated box loot with latest food, drink, crafting materials, and building supplies.