[FilterScript] SA-MP Modified Cars.
#6

or

pawn Код:
stock ModifyVehicle( vehicleid, objectid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz )
{
    new iObject;
    iObject = CreateObject( objectid, 0.0, 0.0, 0.0, 0, 0, 0 );
    AttachObjectToVehicle( iObject, vehicleid, x, y, z, rx, ry, rz );
    return 1;
}
then do

pawn Код:
new
    Vehicle
;

// create the vehicle
Vehicle = CreateVehicle( ... );
// add the desired object.
ModifyVehicle( Vehicle, yourobjectid, offsetx, offsety, offsetz, offsetrotx, offsetroty, offsetrotz );

// assign the variable to the new vehicle.
Vehicle = CreateVehicle( ... );
// modify the new vehicle with 2 mods
ModifyVehicle( Vehicle, 69, offsetx, offsety, offsetz, offsetrotx, offsetroty, offsetrotz );
ModifyVehicle( Vehicle, 1337, offsetx, offsety, offsetz, offsetrotx, offsetroty, offsetrotz );
to save alot of variables and code.
Reply


Messages In This Thread
SA-MP Modified Cars. - by LivingLikeYouDo - 21.07.2014, 15:00
Re: SA-MP Modified Cars. - by jueix - 21.07.2014, 15:02
Re: SA-MP Modified Cars. - by GeekSiMo - 21.07.2014, 16:01
Re: SA-MP Modified Cars. - by LivingLikeYouDo - 21.07.2014, 16:08
Re: SA-MP Modified Cars. - by hillko - 21.07.2014, 17:28
Re: SA-MP Modified Cars. - by Smileys - 21.07.2014, 17:51

Forum Jump:


Users browsing this thread: 5 Guest(s)