Painting Costs

This commit is contained in:
He-Man 2019-05-05 00:30:58 +02:00
parent cba23ab77e
commit 873aea305f

View File

@ -1,6 +1,9 @@
_this spawn {
params ["_Building","_Vehicle",["_Textures",[]]];
_PaintingCosts = getnumber (missionconfigfile >> "CfgPainting" >> (typeof _Vehicle) >> "PaintingCosts");
_PaintingCosts = getnumber (missionconfigfile >> "CfgPainting" >> "DefaultVehicle" >> "PaintingCosts");
if (isclass (missionconfigfile >> "CfgPainting" >> (typeof _Vehicle))) then {
_PaintingCosts = getnumber (missionconfigfile >> "CfgPainting" >> (typeof _Vehicle) >> "PaintingCosts");
};
if (EPOCH_playerCrypto < _PaintingCosts) exitWith {
_line = format ['You need %1 Crypto for Painting', _PaintingCosts];
[_line,5] call Epoch_message;