Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _playerUID = getPlayerUID player;
- {
- _flag = _x;
- _buildRights = _flag getVariable ["ExileTerritoryBuildRights", []];
- if (_playerUID in _buildRights) then
- {
- _nextProtectionMoneyDueDate = _flag getVariable ["ExileTerritoryMaintenanceDue", [0, 0, 0, 0, 0]];
- _dateTimeString = format
- [
- "%1-%2-%3 @ %4:%5",
- _nextProtectionMoneyDueDate select 0,
- _nextProtectionMoneyDueDate select 1,
- _nextProtectionMoneyDueDate select 2,
- _nextProtectionMoneyDueDate select 3,
- _nextProtectionMoneyDueDate select 4
- ];
- _territorryname = _flag getVariable ["ExileTerritoryName", ""];
- ["RestartWarning", format["%2 Due before %1",_dateTimeString,_territorryname]] call ExileClient_gui_notification_event_addNotification;
- systemchat format["Payment for territory %2 is due before %1",_dateTimeString,_territorryname];
- };
- }
- forEach (allMissionObjects "Exile_Construction_Flag_Static");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement