_fn_find_player = {
{
if (_this isEqualTo (getPlayerUID _x)) exitWith {
_x;
};
objNull
} foreach playableUnits;
};
_player = _from_uid call _fn_find_player;
[] spawn max_facture_fnc_factureListMenu;
life_atmbank = life_atmbank - _price;
[1] call SOCK_fnc_updatePartial;
if (isNull _player) then {
[_from_uid,_price] remoteExec ["max_facture_fnc_updatePlayer",2];
if !(isNil "masterpay_script_enable_and_ready") then {
if (masterpay_script_enable_and_ready) then {
[player,(["STR_BILLING_SYSTEM_FROM","The_Programmer_Settings_MasterPay","MasterPay_Localization"] call theprogrammer_core_fnc_localize),_price,format [(["STR_BILLING_SYSTEM_DESCRITPION","The_Programmer_Settings_MasterPay","MasterPay_Localization"] call theprogrammer_core_fnc_localize),_id]] spawn masterpay_fnc_updateBank;
};
};
} else {
[0,player,_price,_id] remoteExec ["max_facture_fnc_factureResult",_player];
[player,_player,_price,"Bank Transfert"] spawn masterpay_fnc_updateBank;
if !(isNil "masterpay_script_enable_and_ready") then {
if (masterpay_script_enable_and_ready) then {
[player,_player,_price,format [(["STR_BILLING_SYSTEM_DESCRITPION","The_Programmer_Settings_MasterPay","MasterPay_Localization"] call theprogrammer_core_fnc_localize),_id]] spawn masterpay_fnc_updateBank;
};
};
};