Now that i have this in my compiles i wonder... how can i use this in other places.. like the final condition ondeploy anything to charge coins for a user to deploy something..
_condition | string of code to evaluate to determine whether action is shown | string | "!(isNull player) && {(getPlayerUID player) in DZE_DEPLOYABLE_ADMINS}"
Question
kingpapawawa
i just added the SC_fnc_removecoins with the updated Virtual Garage thanks to @theduke
SC_fnc_removeCoins= { private ["_player","_amount","_wealth","_newwealth", "_result"]; _player = _this select 0; _amount = _this select 1; _result = false; _wealth = _player getVariable["cashMoney",0]; if(_amount > 0)then{ if (_wealth < _amount) then { _result = false; } else { _newwealth = _wealth - _amount; _player setVariable["cashMoney",_newwealth, true]; _player setVariable ["moneychanged",1,true]; _result = true; PVDZ_plr_Save = [_player,(magazines _player),true,true] ; publicVariableServer "PVDZ_plr_Save"; }; }else{ _result = true; }; _result };
Now that i have this in my compiles i wonder... how can i use this in other places.. like the final condition on deploy anything to charge coins for a user to deploy something..
_condition | string of code to evaluate to determine whether action is shown | string | "!(isNull player) && {(getPlayerUID player) in DZE_DEPLOYABLE_ADMINS}"
Any thoughts?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now