Advertisement
secondcoming

Untitled

May 1st, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.89 KB | None | 0 0
  1. _playerUID = getPlayerUID player;
  2. {
  3.     _flag = _x;
  4.     _buildRights = _flag getVariable ["ExileTerritoryBuildRights", []];
  5.     if (_playerUID in _buildRights) then
  6.     {      
  7.         _nextProtectionMoneyDueDate = _flag getVariable ["ExileTerritoryMaintenanceDue", [0, 0, 0, 0, 0]];
  8.         _dateTimeString = format
  9.         [
  10.             "%1-%2-%3 @ %4:%5",
  11.             _nextProtectionMoneyDueDate select 0,
  12.             _nextProtectionMoneyDueDate select 1,
  13.             _nextProtectionMoneyDueDate select 2,
  14.             _nextProtectionMoneyDueDate select 3,
  15.             _nextProtectionMoneyDueDate select 4
  16.         ];
  17.         _territorryname = _flag getVariable ["ExileTerritoryName", ""];
  18.         ["RestartWarning", format["%2 Due before %1",_dateTimeString,_territorryname]] call ExileClient_gui_notification_event_addNotification;
  19.         systemchat format["Payment for territory %2 is due before %1",_dateTimeString,_territorryname];
  20.     };
  21. }
  22. forEach (allMissionObjects "Exile_Construction_Flag_Static");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement