12.09.2014, 19:24
Hello I was make underongamemodeinit when I start server then for some types of vehicles the fuel is diffrent like with trucks buses bikes and cars and I was set fuel for bikes like nrg freeway sanchez Quad to 15.00 L but when I sit on nrg the fuel of bikes is somewhere setted to 40 or 100 L but it should be 15.00 L if you know what I mean. Thanks
here is the code underongamemodeinit for setting fuel
also here is the stock for IsABike
here is the code underongamemodeinit for setting fuel
pawn Код:
for(new o; o< MAX_CARS; o++)
{
if(IsATruck(GetVehicleModel(o))) Fuel[o] = 100.0;
else if(IsABus(GetVehicleModel(o))) Fuel[o] = 80.0;
else if(IsABike(GetVehicleModel(o))) Fuel[o] = 15.0;
else Fuel[o] = 40.0; this set fuel for other vehicles which is not above the code
}
pawn Код:
stock IsABike(id)
{
if(id == 462 || id == 448 || id == 581 || id == 522 || id == 461 || id == 521 || id == 523 || id == 463 || id == 468 || id == 471) return 1;
return 0;
}