Jump to content
  • 0

Question

Posted

Am nevoie de ajutor:

Vreau si eu sa stiu cum pot face sa am fuel infinit la masina (gamemod ppc trucking) am adaugat o noua clasa , dar cand spwanez masina trebuie sa dau eu /fuel si apoi sa urc in ea.Va rog help!

Multumesc!

2 answers to this question

Recommended Posts

Posted

[pawn]public OnVehicleSpawn(vehicleid)

{

AVehicleData[vehicleid][MafiaLoad] = false;

if (AVehicleData[vehicleid][Owned] == true)

AVehicleData[vehicleid][Fuel] = MaxFuel;

if (AVehicleData[vehicleid][PaintJob] != 0)

{

ChangeVehiclePaintjob(vehicleid, AVehicleData[vehicleid][PaintJob] - 1);

}

ChangeVehicleColor(vehicleid, AVehicleData[vehicleid][Color1], AVehicleData[vehicleid][Color2]);

for (new i; i < 14; i++)

{

        RemoveVehicleComponent(vehicleid, GetVehicleComponentInSlot(vehicleid, i));

if (AVehicleData[vehicleid][Components] != 0)

        AddVehicleComponent(vehicleid, AVehicleData[vehicleid][Components]); // Add the component to the vehicle

}

    return 1;

}[/pawn]

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.