From d46285ae0a2284d12ae52afc9b08143a62db9ecf Mon Sep 17 00:00:00 2001 From: happydayz Date: Fri, 18 Mar 2016 19:23:27 +1100 Subject: [PATCH] Removed Update Stats If you use Update Respect/Poptabs, download the latest version from https://github.com/happydayz-enigma/Enigma_Exile_UpdateRP --- @Enigma/addons/enigma_exile_revive.pbo | Bin 18330 -> 16753 bytes .../compile/Enigma/Exile_UpdateStats.sqf | 36 ------------------ .../init/server_compiles.sqf | 3 -- .../init/server_publicEH.sqf | 1 - 4 files changed, 40 deletions(-) delete mode 100644 @Enigma/addons/enigma_exile_revive/compile/Enigma/Exile_UpdateStats.sqf diff --git a/@Enigma/addons/enigma_exile_revive.pbo b/@Enigma/addons/enigma_exile_revive.pbo index a1ad9f4f4aadfe04c8e8ec54e670b287a28d24c0..10ae7522907b97b315f066ab1e8fdc15898deac5 100644 GIT binary patch delta 84 zcmbQ$&-k&4al*ujr?Pp&85zJJC-hBN_+%$WPrhXk0fu;>$TEh_Ga2n{HlKB3XWE?T h8pb$T#XU)c2iWp*R#(GpAb3P~I^lR+b_vhu4@xucxa>Tfm zPq8oMBb#ONlToko@#^Ptl(8W*)$1_HTk+ZHNO(lqPMo`zIyMNX#uHG9wWPAW6)-R@U7%M>ay%URqhk;$@m1E z&GycQ(2v9k(U%E87-7&o4T2lTX{q-)rz^vMqklr6&Kw8*l7FyqJ5lIW3PUrpP}=w-#>lGMc>X``=P%4@a+$|slJf_ diff --git a/@Enigma/addons/enigma_exile_revive/compile/Enigma/Exile_UpdateStats.sqf b/@Enigma/addons/enigma_exile_revive/compile/Enigma/Exile_UpdateStats.sqf deleted file mode 100644 index 584ac56..0000000 --- a/@Enigma/addons/enigma_exile_revive/compile/Enigma/Exile_UpdateStats.sqf +++ /dev/null @@ -1,36 +0,0 @@ -/* -Exile_UpdateStats.sqf -[_ZEN_] Happydayz -© 2015 Enigma Team -*/ - -Private["_target","_newmoneyvalue","_newscorevalue","_newMoney","_newScore"]; - -_target = _this select 0; -_newmoneyvalue = _this select 1; -_newscorevalue = _this select 2; - -diag_log ["%1 Executing Exile_UpdateStats, Adding %2 Poptabs and %3 Respect",_target,_newmoneyvalue,_newscorevalue]; - -if (_newmoneyvalue > 0) then { - - _target setVariable ['ExileMoney', _newmoneyvalue]; - - _target setVariable['PLAYER_STATS_VAR',[_newmoneyvalue,_target getVariable ['ExileScore', 0]],true]; - ExileClientPlayerMoney = _newmoneyvalue; - (owner _target) publicVariableClient 'ExileClientPlayerMoney'; - - format['setAccountMoney:%1:%2', _newmoneyvalue, (getPlayerUID _target)] call ExileServer_system_database_query_fireAndForget; - }; - -if (_newscorevalue > 0) then - { - - _target setVariable ['ExileScore', _newscorevalue]; - - _target setVariable['PLAYER_STATS_VAR',[_target getVariable ['ExileMoney', 0],_newscorevalue],true]; - ExileClientPlayerScore = _newscorevalue; - (owner _target) publicVariableClient 'ExileClientPlayerScore'; - - format['setAccountScore:%1:%2', _newscorevalue, (getPlayerUID _target)] call ExileServer_system_database_query_fireAndForget; - }; diff --git a/@Enigma/addons/enigma_exile_revive/init/server_compiles.sqf b/@Enigma/addons/enigma_exile_revive/init/server_compiles.sqf index 98fe568..25d724d 100644 --- a/@Enigma/addons/enigma_exile_revive/init/server_compiles.sqf +++ b/@Enigma/addons/enigma_exile_revive/init/server_compiles.sqf @@ -2,7 +2,4 @@ diag_log format['Enigma Exile Revive: Compiles Started - %1',time]; ENIGMA_server_revivepublicEH =compileFinal preprocessFileLineNumbers "\enigma_exile_revive\init\server_publicEH.sqf"; - - -ENIGMA_server_handle_UpdateStats =compileFinal preprocessFileLineNumbers "\enigma_exile_revive\compile\Enigma\Exile_UpdateStats.sqf"; ENIGMA_server_revivePlayer =compileFinal preprocessFileLineNumbers "\enigma_exile_revive\compile\Enigma\Exile_RevivePlayer.sqf"; diff --git a/@Enigma/addons/enigma_exile_revive/init/server_publicEH.sqf b/@Enigma/addons/enigma_exile_revive/init/server_publicEH.sqf index 6466127..7f58fa4 100644 --- a/@Enigma/addons/enigma_exile_revive/init/server_publicEH.sqf +++ b/@Enigma/addons/enigma_exile_revive/init/server_publicEH.sqf @@ -1,4 +1,3 @@ diag_log format['Enigma Exile Revive: publicEH %1',time]; -"ENIGMA_UpdateStats" addPublicVariableEventHandler{(_this select 1)call ENIGMA_server_handle_UpdateStats}; "ENIGMA_revivePlayer" addPublicVariableEventHandler{(_this select 1)call ENIGMA_server_revivePlayer};