16.04.2014, 13:49
Hello I have a fuel system and know is the problem when I turn on server and go to nrg it say's that is fuel 40 L but it should be 15 L?.For buses cars and trucks it work's fine. What cause that problem? Thanks
Here is code for setting fuel on ongamemodeinit
Here is code for setting fuel on ongamemodeinit
pawn Код:
for(new o = 1; o < MAX_CARS; o++)
{
if(o != INVALID_VEHICLE_ID)
{
if(IsAPlane(GetVehicleModel(o)) || IsABus(GetVehicleModel(o))) Fuel[o] = 80.00;
else if(IsACar(GetVehicleModel(o))) Fuel[o] = 40.00;
else if(IsAMotocycle(GetVehicleModel(o))) Fuel[o] = 15.00;
else if(IsATruck(GetVehicleModel(o))) Fuel[o] = 100.00;
else Fuel[o] = 40.00;
}
}