04.12.2010, 19:44
Hy. I like the new version of licence plates but it will be good if we can define them string of the plate in AddStaticVehicle and in CreateVehicle
stock CreateLicencePlateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay, licenseplate[])
{
new vehicle;
vehicle = CreateVehicle(modelid, x, y, z, angle, color1, color2, respawn_delay);
SetVehicleNumberPlate(vehicle, licenceplate);
SetVehicleToRespawn(vehicle);
}
stock AddStaticLicencePlateVehicle(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2, licenceplate[])
{
new vehicle;
vehicle = AddStaticVehicle(modelid, spawn_x, spawn_y, spawn_z, angle, color1, color2);
SetVehicleNumberPlate(vehicle, licenceplate);
SetVehicleToRespawn(vehicle);
}