PDA

View Full Version : I need help removing fuel system from my script


wertboi333
17/05/2013, 11:17 PM
I want to remove the fuel system in my script, what would i be looking to remove, please help :)
if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 481 && GetVehicleModel(GetPlayerVehicleID(playerid)) != 509 && GetVehicleModel(GetPlayerVehicleID(playerid)) != 510)
{
SetPVarInt(playerid, "fuelonoff", 1);
FuelBar[playerid] = CreateProgressBar(548.00, 26.00, 57.50, 3.20, 866792447, 100.0);
textdrawscount++;
SetProgressBarValue(FuelBar[playerid], VehicleFuel[GetPlayerVehicleID(playerid)]);
ShowProgressBarForPlayer(playerid, FuelBar[playerid]);


GetVehiclePos(vehicleid, a_CarPos[0], a_CarPos[1], a_CarPos[2]);
GetVehicleZAngle(vehicleid, a_CarPos[3]);
fuel = VehicleFuel[vehicleid];
SetVehicleNumberPlate(vehicleid, sz_NumPlate);
SetVehicleToRespawn(vehicleid);
SetVehiclePos(vehicleid, a_CarPos[0], a_CarPos[1], a_CarPos[2]);
SetVehicleZAngle(vehicleid, a_CarPos[3]);
VehicleFuel[vehicleid] = fuel;
return 1;
PlayerVehicleInfo[playerid][v][pvModelId] = 0;
PlayerVehicleInfo[playerid][v][pvPosX] = 0.0;
PlayerVehicleInfo[playerid][v][pvPosY] = 0.0;
PlayerVehicleInfo[playerid][v][pvPosZ] = 0.0;
PlayerVehicleInfo[playerid][v][pvPosAngle] = 0.0;
PlayerVehicleInfo[playerid][v][pvLock] = 0;
PlayerVehicleInfo[playerid][v][pvLocked] = 0;
PlayerVehicleInfo[playerid][v][pvPaintJob] = -1;
PlayerVehicleInfo[playerid][v][pvColor1] = 0;
PlayerVehicleInfo[playerid][v][pvImpounded] = 0;
PlayerVehicleInfo[playerid][v][pvColor2] = 0;
PlayerVehicleInfo[playerid][v][pvPrice] = 0;
PlayerVehicleInfo[playerid][v][pvTicket] = 0;
PlayerVehicleInfo[playerid][v][pvWeapons][0] = 0;
PlayerVehicleInfo[playerid][v][pvWeapons][1] = 0;
PlayerVehicleInfo[playerid][v][pvWeapons][2] = 0;
PlayerVehicleInfo[playerid][v][pvWepUpgrade] = 0;
PlayerVehicleInfo[playerid][v][pvFuel] = 100.0;
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vehicleid,engine,lights,alarm,d oors,bonnet,boot,objective);
if(engine == VEHICLE_PARAMS_UNSET) switch(GetVehicleModel(vehicleid)) {
case 509, 481, 510: VehicleFuel[vehicleid] = 100, arr_Engine{vehicleid} = 1, SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_ON,lig hts,alarm,doors,bonnet,boot,objective);
default: SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,VE HICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective ), arr_Engine{vehicleid} = 0;
SetPVarInt(playerid, "fuelonoff", 1);
FuelBar[playerid] = CreateProgressBar(548.00, 26.00, 57.50, 3.20, 866792447, 100.0);
textdrawscount++;
SetProgressBarValue(FuelBar[playerid], VehicleFuel[vehicleid]);
ShowProgressBarForPlayer(playerid, FuelBar[playerid]);

zDivine
17/05/2013, 11:19 PM
Post code.

-CaRRoT
17/05/2013, 11:22 PM
Post the codes that would contain any parts of your fuel script.

Advice : Copy/paste any parts that got the word "Fuel" here - or gas.