12.03.2012, 11:22
Didn't test it, but this should work:
pawn Код:
stock ChangeVehPlate( vehicleid )
{
new string[8], string2[4];
if( vehicleid < 10 ) format(string2,sizeof(string2),"00%i", vehicleid );
else if( vehicleid < 100 ) format(string2,sizeof(string2),"0%i", vehicleid );
else format(string2,sizeof(string2),"%i", vehicleid );
format(string,sizeof(string),"LV-%s", string2 );
SetVehicleNumberPlate( vehicleid, string );
return 1;
}