[SUGGESION] Licence plate - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [SUGGESION] Licence plate (
/showthread.php?tid=196129)
[SUGGESION] Licence plate -
hpeter94 - 04.12.2010
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
Re: [SUGGESION] Licence plate -
Betamaster - 04.12.2010
You could simply create a AddStaticVehicle and CreateVehicle function wrapper and add number plates that way.
Re: [SUGGESION] Licence plate -
[NWA]Hannes - 04.12.2010
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);
}