SA-MP Forums Archive
SetVehicleNumberPlate Question - 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: SetVehicleNumberPlate Question (/showthread.php?tid=256953)



SetVehicleNumberPlate Question - farmer1710 - 23.05.2011

How can i make it where everycar has a different unique plate number that saves in there user file?

423-AYY

For Example?


Re: SetVehicleNumberPlate Question - ViperSniper - 23.05.2011

Well, you could make it use the Vehicle's Index ID.
Then theres no chance of there being a non unique Plate.
like:
Код:
	new lplate[9];
	vehicleId = random(100);
	for(new i = 0; i < 5; i++)
		lplate[i] = 65+random(24);
	format(lplate,9,"%s-%d",lplate,vehicleid);
	SetVehicleNumberPlate(vehicleid,lplate);



Re: SetVehicleNumberPlate Question - farmer1710 - 23.05.2011

kk Thanks


Off Topic:
Where does...... /saveex save??


Re: SetVehicleNumberPlate Question - ColdIce - 23.05.2011

gta user files - SAMP - saved positions


Re: SetVehicleNumberPlate Question - farmer1710 - 23.05.2011

Nope no
/Saveex


Re: SetVehicleNumberPlate Question - leong124 - 23.05.2011

It should be a custom command.