Гость | Дата: Пятница, 04.02.2011, 13:26 | Сообщение # 1 |
Группа: Гости
| 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 1; } return 0; } SetVehiclesRandomPlates(){//MazaHACKa's Code 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(91-64)+64; number=random(9999-1000)+1000; format(string, sizeof(string),"%s %d",letters,number); SetVehicleNumberPlate(i, string); SetVehicleToRespawn(i); } } } Ставим после объявления всех машин в OnGameModeInIt().
|
|
| |