SA-MP Forums Archive
plz help - 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: plz help (/showthread.php?tid=97058)



plz help - Rokis - 12.09.2009

Please tell whats wrong now? I did everything by wiki, but the car plate didn't change.

Код:
if(strcmp(cmdtext, "/numeris", true)==0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
 	SetVehicleNumberPlate(vehicleid,"Rokis");
	SetVehicleToRespawn(vehicleid);
	return 1;}



Re: plz help - MadeMan - 12.09.2009

You sure you were in a car when doing it?


Re: plz help - Rokis - 13.09.2009

yes car respawned, but the car plate doesn't changes.


Re: plz help - Calgon - 13.09.2009

If you're using 0.3, note that this no longer works in 0.3.


Re: plz help - Rokis - 13.09.2009

no, i'm using server on 0.2x


Re: plz help - b[extra] - 15.09.2009

Hi Rokis.

They said that not all vehicles can change their plate number. See this post:

Quote:
Originally Posted by CrαcK
SetVehicleNumberPlate works completely(!) only on these vehicle models.

pawn Код:
new validmodels[] = {402,407,409,410,412,415,420,424,426,427,434,436,437,438,451,466,467,470,475,477,480,483,492,506,507,515,516,524,529,535,536,545,547,551,552,556,557,558,559,560,565,566,567,574,575,578,580,596,597,598,604};
On any other vehicle plate is set only on front bumper\on rear bumper\not set at all.
So check vehicle models.