diff options
| author | hybrid <hybrid@hybridlabs.pro> | 2026-06-11 19:55:24 +0300 |
|---|---|---|
| committer | hybrid <hybrid@hybridlabs.pro> | 2026-06-11 19:55:24 +0300 |
| commit | 628d33984d9228f1781d13a65fbb80f35facc899 (patch) | |
| tree | cd909141f87e14f22c3511549a9bc067d9ff8b50 /Server/PVFunctions/RequestChangeScore.sqf | |
| download | a2wf_sara-628d33984d9228f1781d13a65fbb80f35facc899.tar.gz a2wf_sara-628d33984d9228f1781d13a65fbb80f35facc899.tar.bz2 a2wf_sara-628d33984d9228f1781d13a65fbb80f35facc899.zip | |
init
Diffstat (limited to 'Server/PVFunctions/RequestChangeScore.sqf')
| -rw-r--r-- | Server/PVFunctions/RequestChangeScore.sqf | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Server/PVFunctions/RequestChangeScore.sqf b/Server/PVFunctions/RequestChangeScore.sqf new file mode 100644 index 0000000..2d7bec8 --- /dev/null +++ b/Server/PVFunctions/RequestChangeScore.sqf @@ -0,0 +1,12 @@ +Private["_oldScore","_newScore","_playerChanged"];
+
+_playerChanged = _this select 0;
+_newScore = _this select 1;
+
+_oldScore = score _playerChanged;
+_playerChanged addScore -_oldScore;
+_playerChanged addScore _newScore;
+
+WFBE_ChangeScore = [nil,'CLTFNCCHANGESCORE',[_playerChanged,_newScore]];
+publicVariable 'WFBE_ChangeScore';
+if (isHostedServer) then {[nil,'CLTFNCCHANGESCORE',[_playerChanged,_newScore]] Spawn HandlePVF};
|
