26.09.2012, 18:27
(
Последний раз редактировалось ivanVU; 27.09.2012 в 18:37.
)
I have problem's with fuel, it's not seting fuel. not even to one vehicle.
I made command
and it's seting, but problem is that i have to type that command 2 times..
I need help with this, to make setting fuel right.
Sorry for my bad english, I hope that you have understand me.
Код:
public OnVehicleSpawn(vehicleid)
{
new vID = GetVehicleModel(vehicleid);
if(Car(vID))
{
Fuel[vehicleid] = 50;
}
if(Bike(vID))
{
Fuel[vehicleid] = 30;
}
if(HeavyVehicles(vID))
{
Fuel[vehicleid] = 200;
}
if(Boat(vID))
{
Fuel[vehicleid] = 250;
}
if(Airplane(vID))
{
Fuel[vehicleid] = 1000;
}
HelpFuel[vehicleid] = 9;
Engine[vehicleid] = 0;
Lights[vehicleid] = 0;
return 1;
}
Код:
CMD:fueltest(playerid,params[])
{
new vID = GetPlayerVehicleID(playerid);
Fuel[vID] = 50;
return true;
}
I need help with this, to make setting fuel right.
Sorry for my bad english, I hope that you have understand me.

