[Include] [INC] Vehicle functions v0.2.1 R2
#9

Example:

pawn Код:
// Set vehicle license plate, when this have.
if(IsLicensePlate(vehicleid))
{
    SetVehicleNumberPlate(vehicleid, "MyPlate");
}
pawn Код:
new // Get vehicle color.
    color[2];

    GetVehicleColor(vehicleid, color[0], color[1])
    printf("The vehicle color ( vID: %d ) is: %d & %d, and the paintjob is: %d", vehicleid, color[0], color[1], GetVehiclePaintjob(vehicleid));
pawn Код:
// Get the vehicle type.
if(GetVehicleType(modelid) == VEHICLE_BIKE)
{
    printf("The vehicle is bike");
}
else
{
    printf("The vehicle isn't bike");
}
pawn Код:
// Check the component compatible with vehicle.
if(IsUpgradeCompatible(modelid, componentid))
{
    print("The component works for this vehicle");
}
else
{
    print("Invalid component id");

}
Reply


Messages In This Thread
[INC] Vehicle functions v0.2.1 R2 - by kurta999 - 24.03.2011, 21:23
Re: [INC] Vehicle functions v0.2.1 R2 - by Lukas5852 - 24.03.2011, 21:32
Re: [INC] Vehicle functions v0.2.1 R2 - by s1k - 24.03.2011, 21:35
Re: [INC] Vehicle functions v0.2.1 R2 - by kurta999 - 24.03.2011, 21:36
Re: [INC] Vehicle functions v0.2.1 R2 - by Lukas5852 - 24.03.2011, 21:38
Re: [INC] Vehicle functions v0.2.1 R2 - by gamer931215 - 25.03.2011, 00:32
Re: [INC] Vehicle functions v0.2.1 R2 - by Ironboy - 25.03.2011, 05:54
Re: [INC] Vehicle functions v0.2.1 R2 - by [ProX]BlueFire - 25.03.2011, 07:46
Re: [INC] Vehicle functions v0.2.1 R2 - by kurta999 - 25.03.2011, 18:19

Forum Jump:


Users browsing this thread: 1 Guest(s)