AttachObjectToVehicle Arrays
#5

What is the model ID of them?
Adapt.

Ex:
pawn Код:
public OnVehicleSpawn(vehicleid)
{
    new rand;
    if(GetVehicleModel(vehicleid) == MODEL_ENFORCER) // Enforcer
        rand = 0;
    else if(GetVehicleModel(vehicleid) == MODEL_CRUISER) // Cruiser
        rand = 1;

    AttachObjectToVehicle(myobject, vehicleid, PDObjects[rand][0], PDObjects[rand][1], PDObjects[rand][2], PDObjects[rand][3], PDObjects[rand][4], PDObjects[rand][5]);
    return true;
}
Reply


Messages In This Thread
AttachObjectToVehicle Arrays - by Luis- - 27.05.2012, 18:15
Re: AttachObjectToVehicle Arrays - by Luis- - 27.05.2012, 18:48
Re: AttachObjectToVehicle Arrays - by ViniBorn - 27.05.2012, 19:22
Re: AttachObjectToVehicle Arrays - by Luis- - 27.05.2012, 19:34
Re: AttachObjectToVehicle Arrays - by ViniBorn - 27.05.2012, 19:57
Re: AttachObjectToVehicle Arrays - by Luis- - 27.05.2012, 20:05

Forum Jump:


Users browsing this thread: 2 Guest(s)