mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Painting Costs
This commit is contained in:
parent
cba23ab77e
commit
873aea305f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user