Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _exit = false;
- for "_i" from 0 to 1 step 0 do {
- sleep _timer;
- _cP = _cP + 0.01;
- _progress progressSetPosition _cP;
- _pgText ctrlSetText format [(["STR_PROGRESS_BAR_REFUELCAR","Max_Settings_FuelStations","FuelStations_Localization"] call theprogrammer_core_fnc_localize),round(_cP * 100),"%"];
- if (_cP >= 1) exitWith {};
- if (player distance _vehicle > 10) exitWith {hint (["STR_TOO_FAR_FROM_PUMP","Max_Settings_FuelStations","FuelStations_Localization"] call theprogrammer_core_fnc_localize); _exit = true;};
- if (vehicle player != player) exitWith {hint (["STR_DONT_GO_INTO_CAR","Max_Settings_FuelStations","FuelStations_Localization"] call theprogrammer_core_fnc_localize); _exit = true;};
- if ((_fuelTypeReal != "") && (_fuelTypeReal != _fuelType) && (_cP > 0.5)) exitWith {hint (["STR_BAD_FUEL","Max_Settings_FuelStations","FuelStations_Localization"] call theprogrammer_core_fnc_localize); _exit = true; _vehicle setHitPointDamage ["HitFuel",1];};
- };
Advertisement
Add Comment
Please, Sign In to add comment