SetVehicleNumberPlate
#1

How to set for vehicle after typing command /buycar a random SetVehicleNumberPlate for car and it will be saved with dini or Y_ini or whatever save system it will be...
I mean SetVehicleNumberPlate - will set with random 4 characters and 4 random numbers example:

NKSP 5466

+REP
Reply
#2

pawn Код:
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"
};
now the random:
pawn Код:
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);
and it will have 4 letters and 4 numbers,i will make the saving now
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)