Guest User

Untitled

a guest
Apr 22nd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.72 KB | None | 0 0
  1. // Loading all faction vehicles
  2.     for(new f = 1; f < MAX_FACTIONS; f++)
  3.     {
  4.         new cars[17]; format(cars, sizeof(cars), "/cars/factions/%d", f); // Looping factions
  5.         if(dini_Exists(cars)) // if the faction exists
  6.         {
  7.             new fcar[21];
  8.             for(new c = 1; c < 10; c++) // looping car (max 10 faction cars per faction)
  9.             {
  10.                 new vehid;
  11.                 format(fcar, sizeof(fcar), "/cars/factions/%d/%d", f, c); // formating values
  12.                 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);
  13.             }
  14.         }
  15.     }
Add Comment
Please, Sign In to add comment