25.03.2011, 18:19
(
Последний раз редактировалось kurta999; 25.03.2011 в 21:44.
)
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");
}