Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnGameModeInit()
- {
- new
- facStr[32],
- vehStr[32]
- ;
- for( new f = 1; f < MAX_FACTIONS; f++ )
- {
- format(facStr, sizeof(facStr), "RPMod/Factions/%d.ini", f);
- if(fexist(facStr))
- {
- INI_ParseFile(facStr, "LoadFaction_%s", .bExtra = true, .extra = f);
- printf("[LOAD] Faction ID: %d | Name: %s | Type: %d", f, facInfo[f][facName], facInfo[f][facType]);
- }
- }
- for( new v; v < MAXIMUM_VEHICLES; v++ )
- {
- format(vehStr, sizeof(vehStr), "RPMod/Vehicles/%d.ini", v);
- if(fexist(vehStr))
- {
- INI_ParseFile(vehStr, "LoadVehicle_%s", .bExtra = true, .extra = v);
- VehiclePID[v] = CreateVehicle(vehInfo[v][ModelID], vehInfo[v][Pos][0], vehInfo[v][Pos][1], vehInfo[v][Pos][2], vehInfo[v][Pos][3], vehInfo[v][Colour][0], vehInfo[v][Colour][1], 360000);
- printf("[LOAD] Vehicle ID %d loaded. Model: %d | Colours: %d, %d | Owner: %s", VehiclePID[v], vehInfo[v][ModelID], vehInfo[v][Colour][0], vehInfo[v][Colour][1], vehInfo[v][Owner]);
- }
- else
- {
- //Do nothing - we need it to continue the loop. Do NOT return here.
- }
- }
- AddPlayerClass(0, 0, 0,0,0,0,0,0,0,0,0);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement