Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Loading all faction vehicles
- for(new f = 1; f < MAX_FACTIONS; f++)
- {
- new cars[17]; format(cars, sizeof(cars), "/cars/factions/%d", f); // Looping factions
- if(dini_Exists(cars)) // if the faction exists
- {
- new fcar[21];
- for(new c = 1; c < 10; c++) // looping car (max 10 faction cars per faction)
- {
- new vehid;
- format(fcar, sizeof(fcar), "/cars/factions/%d/%d", f, c); // formating values
- FactionCar[vehid][f] = AddStaticVehicleEx(dini_Int(fcar, "Model"), dini_Float(fcar, "SpawnX"), dini_Float(fcar, "SpawnY"), dini_Float(fcar, "SpawnZ"), dini_Float(fcar, "SpawnA"), dini_Int(fcar, "Color1"), dini_Int(fcar, "Color2"), 99999);
- }
- }
- }
Add Comment
Please, Sign In to add comment