05.01.2012, 22:43
Create a complete new function.
have this with your "new" shit,
this with the stock shit...
and ongamemodeinit
have
}[/pawn
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"
};
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;
}
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;