SetVehiclesRandomPlates
#1

Код:
stock HasVehicleNumberPlate(model){
switch(model){
case 406,417,425,430,432,435,441,444,446,447,449,450,452,453,454,
457,460,464,465,468,469,471,472,473,476,481,484,485,486,487,
488,493,494,497,501,502,503,509,510,511,512,513,514,519,520,
522,528,530,531,532,537,538,539,548,553,563,564,568,569,570,
572,573,577,583,584,588,590,591,592,593,594,595,601,606,607,
608,610,611:return 0;
}
return 1;
}

SetVehiclesRandomPlates(){
	for(new i=0; i<MAX_VEHICLES; i++)
 	{
                if(GetVehicleModel(i)!=0 && HasVehicleNumberPlate(GetVehicleModel(i)))
                {
                new string[10],letters[4],number;
                for(new x=0;x<4;x++)letters[x]=random(90-65)+65;
                number=random(9999-1000)+1000;
                format(string, sizeof(string),"%s %d",letters,number);
                SetVehicleNumberPlate(i, string);
                SetVehicleToRespawn(i);
 		}
        }
}
Reply
#2

Quote:

The return of SetVehicleNumberplate()

[].. Please use this function with care and don't go assigning custom numberplates to vehicles that don't have plates (like planes/boats etc), as this would result in unneeded processing time on the client.

Please take that quote seriously.
Reply
#3

:O Cool thanks i try to make it with a license system like when you pass your drivers license system, you will get a random plate number that is alway's on the cars you buy. when you sit in a other car with a diffrent license plate the cops can do /license-plate <Numbers> and see it's stolen. They can also ticket with /license-plate
Reply
#4

Quote:
Originally Posted by Kalcor
Посмотреть сообщение
Please take that quote seriously.
Ok i'll modify it soon
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)