Create a complete new function.
have this with your "new" shit,
pawn Code:
new LetterList[26][] =
{
"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"
};
this with the stock shit...
pawn Code:
stock SetVehicleRandomNumberPlate(vehicleid)
{
new string[10];
format(string, sizeof(string), "%s%s%s%s %d%d%d", LetterList[random(sizeof(LetterList))], LetterList[random(sizeof(LetterList))], LetterList[random(sizeof(LetterList))], LetterList[random(sizeof(LetterList))], random(10), random(10), random(10));
SetVehicleNumberPlate(vehicleid, string);
return 1;
}
and ongamemodeinit
have
pawn Code:
for(new i=0;i<MAX_VEHICLES;i++)
{
new engine, lights, alarm, doors, bonnet, boot, objective; //This is defining the vehicles current items.
SetVehicleRandomNumberPlate(i);
return 1;
}[/pawn