friquentin

Untitled

Nov 11th, 2018
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. _exit = false;
  2. for "_i" from 0 to 1 step 0 do {
  3. sleep _timer;
  4. _cP = _cP + 0.01;
  5. _progress progressSetPosition _cP;
  6. _pgText ctrlSetText format [(["STR_PROGRESS_BAR_REFUELCAR","Max_Settings_FuelStations","FuelStations_Localization"] call theprogrammer_core_fnc_localize),round(_cP * 100),"%"];
  7. if (_cP >= 1) exitWith {};
  8. if (player distance _vehicle > 10) exitWith {hint (["STR_TOO_FAR_FROM_PUMP","Max_Settings_FuelStations","FuelStations_Localization"] call theprogrammer_core_fnc_localize); _exit = true;};
  9. if (vehicle player != player) exitWith {hint (["STR_DONT_GO_INTO_CAR","Max_Settings_FuelStations","FuelStations_Localization"] call theprogrammer_core_fnc_localize); _exit = true;};
  10. 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];};
  11. };
Advertisement
Add Comment
Please, Sign In to add comment