/*
File: fn_receiveDealer.sqf
Author: moeck (Lost of Paradise)
Description:
Get the answer from the dealer
*/
params [
["_sellers",[],[[]]]
,["_shop","",[""]]
];
if( _sellers isEqualTo []) exitWith {hint localize "STR_Cop_DealerQuestion"}; //No data.
life_action_inUse = true;
_crimes = LIFE_SETTINGS(getArray,"crimes");
_names = "";
{
_val = 0;
if ((_x select 2) > 150000) then {
_val = round((_x select 2) / 16);
} else {
_val = ["483",_crimes] call TON_fnc_index;
_val = ((_crimes select _val) select 1);
if (_val isEqualType "") then {
_val = parseNumber _val;
};
};
[(_x select 0),(_x select 1),"483",_val] remoteExecCall ["life_fnc_wantedAdd",RSERV];
_names = _names + format ["%1
",(_x select 1)];
true
} count _sellers;
hint parseText format [(localize "STR_Cop_DealerMSG")+ "
%1",_names];
[[2,_shop,player,0],"DB_fnc_shops",false,false] spawn life_fnc_MP;
life_action_inUse = false;