mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-04 23:32:53 +03:00
added plotManagement by DevZupa
This commit is contained in:
18
SQF/dayz_code/actions/plotManagement/plotObjects.sqf
Normal file
18
SQF/dayz_code/actions/plotManagement/plotObjects.sqf
Normal file
@@ -0,0 +1,18 @@
|
||||
private ["_newWealth","_missing","_missingQty","_proceed","_itemIn","_countIn","_target","_objectClasses","_range","_objects","_requirements","_count","_cost","_option"];
|
||||
disableSerialization;
|
||||
|
||||
_range = DZE_PlotPole select 0;
|
||||
_count = count ((getPosATL player) nearObjects ["All",_range]);
|
||||
|
||||
_colour = "#ffffff";
|
||||
|
||||
if(_count / DZE_BuildingLimit * 100 < 40)then{
|
||||
_colour = "#00ff00";
|
||||
};
|
||||
if(_count / DZE_BuildingLimit * 100 > 75)then{
|
||||
_colour = "#ff0000";
|
||||
};
|
||||
|
||||
_ctrl = ((uiNamespace getVariable "PlotManagement") displayCtrl 7014);
|
||||
_result = format["<t color='%3'>%1 / %2</t>" , _count, DZE_BuildingLimit,_colour];
|
||||
_ctrl ctrlSetStructuredText parseText _result;
|
||||
Reference in New Issue
Block a user