Faci o functie care sa verifice modelul vehiculului in care se afla jucatorul.
function thisIsBike(vehID)
{
switch (GetVehicleModel(vehID))
{
case 448, 461, 462, 463, 468, 471, 481, 509, 510, 521, 523, 568, 571, 581, 586: return 1;
}
return 0;
}
Iar dupa la functia
CheckGas()
La linia
if(IsAPlane(vehicle) || ExamCar[i] == vehicle || JobVehicle[i] == vehicle) { Gas[vehicle]++; }
Adaugi:
thisIsBike(vehicle)
Iar codul tau va trebuii sa arate asa:
if(IsAPlane(vehicle) || thisIsBike(vehicle) || ExamCar[i] == vehicle || JobVehicle[i] == vehicle) { Gas[vehicle]++; }
Sper ca ai inteles.