[SUGGESION] Licence plate
#1

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
Reply
#2

You could simply create a AddStaticVehicle and CreateVehicle function wrapper and add number plates that way.
Reply
#3

Example: CreateLicensePlateVehicle(411, 2057.54, 1064.60, 18.3, 90, 183, 183, 60, "VEH INF"); or AddStaticLicencePlateVehicle(522, 2057.54, 1064.60, 18.3, 90, 183, 183, "VEH NRG");
pawn Код:
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);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)