mirror of
https://github.com/hpy/Enigma_Exile_Revive.git
synced 2024-08-30 16:52:15 +00:00
Removed Update Stats
If you use Update Respect/Poptabs, download the latest version from https://github.com/happydayz-enigma/Enigma_Exile_UpdateRP
This commit is contained in:
parent
f53228e4bb
commit
d46285ae0a
Binary file not shown.
@ -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;
|
||||
};
|
@ -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";
|
||||
|
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user