01.02.2013, 10:09
I've a problem with SetVehicleNumberPlate, It's not loading it into the server even more then that:
I've this under OnGameModeInIt:
The problem is, it's stuck the load, when it's arrive LoadPlates it won't load it and it won't LoadMotds either.
Here's the stock:
I've this under OnGameModeInIt:
Код:
LoadStaticVehicles(); LoadFactions(); LoadFamilies(); LoadPickups(); LoadPoints(); LoadBiz(); LoadHouses(); LoadDoors(); LoadGates(); LoadMapIcons(); LoadArrestPoint(); LoadDrugs(); LoadProducts(); LoadPlates(); LoadMOTDS();
Here's the stock:
Код:
stock LoadPlates() { for(new i = 0; i < MAX_VEHICLES; i++) { if(IsCopVehicle(i)) SetVehicleNumberPlate(i, "LSPD"); else if(IsMedicVehicle(i)) SetVehicleNumberPlate(i, "LSEMS"); else if(IsGuardVehicle(i)) SetVehicleNumberPlate(i, "SADOC;"); else if(IsCIUVehicle(i)) SetVehicleNumberPlate(i, "random(899999) + 100000"); else if(IsNewsVehicle(i)) SetVehicleNumberPlate(i, "SAN"); else if(IsGovVehicle(i)) SetVehicleNumberPlate(i, "LSGOV"); else if(IsSheriffVehicle(i)) SetVehicleNumberPlate(i, "SASD"); else if(IsDMVCar(i)) SetVehicleNumberPlate(i, "SADMV"); else if(IsRentalCar(i)) SetVehicleNumberPlate(i, "RENTAL"); else if(IsTruckerVehicle(i)) SetVehicleNumberPlate( i, "TRUCKER"); } print("Plates sucessfully loaded."); return 1; }