Random Letters and Numbers
#7

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
Reply


Messages In This Thread
Random Letters and Numbers - by Abreezy - 05.01.2012, 20:30
Re: Random Letters and Numbers - by Norck - 05.01.2012, 21:04
Re: Random Letters and Numbers - by Mrki_Drakula - 05.01.2012, 21:21
Re: Random Letters and Numbers - by Abreezy - 05.01.2012, 22:20
Re: Random Letters and Numbers - by thiaZ_ - 05.01.2012, 22:25
Re: Random Letters and Numbers - by Abreezy - 05.01.2012, 22:37
Re: Random Letters and Numbers - by vincee - 05.01.2012, 22:43
Re: Random Letters and Numbers - by thiaZ_ - 05.01.2012, 22:46
Re: Random Letters and Numbers - by vincee - 05.01.2012, 22:51

Forum Jump:


Users browsing this thread: 2 Guest(s)