SA-MP Forums Archive
[HELP]NumberPlate - 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: [HELP]NumberPlate (/showthread.php?tid=229049)



[HELP]NumberPlate - lazare13 - 20.02.2011

how set all cars number plate ABC ?


Re: [HELP]NumberPlate - Marricio - 20.02.2011

do a loop for all vehicles and set their number plate to ABC
i hope u took a idea


Re: [HELP]NumberPlate - austin070 - 20.02.2011

To set the plate of a vehicle, the function is:
Код:
SetVehicleNumberPlate();
The parameters are:
Код:
SetVehicleNumberPlate(vehicleid, numberplate[]);
Here is an example:
Код:
SetVehicleNumberPlate(AddStaticVehicle(598,2255.93579102,2431.31079102,3.14343715,0.00000000,-1,1), "MY PLATE");



Re: [HELP]NumberPlate - admantis - 20.02.2011

Essay.
pawn Код:
for ( new v = 0; v < MAX_VEHICLES; v ++ ) {
   SetVehicleNumberPlate ( v , ABC ); }



Re: [HELP]NumberPlate - [BEP]AcerPilot - 21.02.2011

Quote:
Originally Posted by admantis
Посмотреть сообщение
Essay.
pawn Код:
for ( new v = 0; v < MAX_VEHICLES; v ++ ) {
   SetVehicleNumberPlate ( v , ABC ); }
Some erros here, no?

pawn Код:
for(new i = 0; i < MAX_VEHICLES; i++)
{
    SetVehicleNumberPlate(i, "ABC");
    SetVehicleToRespawn(i);
}