From 7ab58676e4e4fcb8b1e35519fc6488629256f604 Mon Sep 17 00:00:00 2001 From: AirwavesMan Date: Tue, 26 Jan 2021 17:05:25 +0100 Subject: [PATCH] Add Z_persistentMoney check --- spawn/main.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spawn/main.sqf b/spawn/main.sqf index 97b8f5b..bc290e2 100644 --- a/spawn/main.sqf +++ b/spawn/main.sqf @@ -167,9 +167,9 @@ if (class_selection && !_isPZombie) then { default {0}; }; - _wealth = player getVariable ["cashMoney",0]; + _wealth = _player getVariable [(["cashMoney","globalMoney"] select Z_persistentMoney),0]; if (_wealth < _coins) then { - player setVariable ["cashMoney",(_wealth + _coins),true]; + player setVariable [(["cashMoney","globalMoney"] select Z_persistentMoney),(_wealth + _coins),true]; }; };