How to add territory with a diferentiate apayment?

How to add territory with a diferentiate apayment?

« posted: Jan 09, 2019, 04:41 PM »
Default:
Code: [Select]
_moneyAmount = ["A3W_payrollAmount", 100] call getPublicVar;

{
_team = _x select 0;
_count = _x select 1;

_money = _count * _moneyAmount;
_message =  format ["Your team received a $%1 bonus for holding %2 territor%3 during the past %4 minutes", [_money] call fn_numbersText, _count, if (_count == 1) then { "y" } else { "ies" }, ceil (_timeInterval / 60)];

[[_message, _money], "A3W_fnc_territoryActivityHandler", _team, false] call A3W_fnc_MP;
} forEach _payouts;

Diferentiate:
Code: [Select]
_bonusTerritory = TERRITORY_XXXXX;
_bonusMoney = 5000;
_moneyAmount = ["A3W_payrollAmount", 100] call getPublicVar;

{
_team = _x select 0;
_count = _x select 1;

_money = _count * _moneyAmount + _bonusMoney;
_message =  format ["Your team received a $%1 bonus for holding %2 territor%3 during the past %4 minutes", [_money] call fn_numbersText, _count, if (_count == 1) then { "y" } else { "ies" }, ceil (_timeInterval / 60)];

[[_message, _money], "A3W_fnc_territoryActivityHandler", _team, false] call A3W_fnc_MP;
} forEach _payouts;
  • Offline AgentRev
  • Developer
  • Veteran
  • ******
  • Posts: 2523

Re: How to add territory with a diferentiate apayment?

« Reply #1 posted: Jan 10, 2019, 06:24 PM »
territoryPayroll.sqf would need to be partially rewritten to store amounts in the _payouts array instead of just the counts.

Re: How to add territory with a diferentiate apayment?

« Reply #2 posted: Jan 11, 2019, 11:31 PM »
territoryPayroll.sqf would need to be partially rewritten to store amounts in the _payouts array instead of just the counts.

Ouxxxxx ...

I have no idea how make this.

Thank you for your help.