Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case THREAD_LOAD_FACVEHS:
- {
- if(szRows)
- {
- for(new f = 0; f < MAX_FACTION; f++) {
- cache_get_field_content(0, "fac_id", szResult); FactionVehicleInfo[f][szRows][fVI_facID] = strval(szResult);
- cache_get_field_content(0, "model_id", szResult); FactionVehicleInfo[f][szRows][fVI_ModelID] = strval(szResult);
- cache_get_field_content(0, "colour_1", szResult); FactionVehicleInfo[f][szRows][fVI_Colours][0] = strval(szResult);
- cache_get_field_content(0, "colour_2", szResult); FactionVehicleInfo[f][szRows][fVI_Colours][1] = strval(szResult);
- cache_get_field_content(0, "upkeep", szResult); FactionVehicleInfo[f][szRows][fVI_upKeep] = strval(szResult);
- cache_get_field_content(0, "rank_needed", szResult); FactionVehicleInfo[f][szRows][fVI_vehRank] = strval(szResult);
- cache_get_field_content(0, "posX", szResult); FactionVehicleInfo[f][szRows][fVI_vPos][0] = floatstr(szResult);
- cache_get_field_content(0, "posY", szResult); FactionVehicleInfo[f][szRows][fVI_vPos][1] = floatstr(szResult);
- cache_get_field_content(0, "posZ", szResult); FactionVehicleInfo[f][szRows][fVI_vPos][2] = floatstr(szResult);
- cache_get_field_content(0, "posA", szResult); FactionVehicleInfo[f][szRows][fVI_vPos][3] = floatstr(szResult);
- FactionVehicleInfo[f][szRows][fVI_vID] = CreateVehicle(FactionVehicleInfo[f][szRows][fVI_ModelID], FactionVehicleInfo[f][szRows][fVI_vPos][0], FactionVehicleInfo[f][szRows][fVI_vPos][1], FactionVehicleInfo[f][szRows][fVI_vPos][2], FactionVehicleInfo[f][szRows][fVI_vPos][3], FactionVehicleInfo[f][szRows][fVI_Colours][0], FactionVehicleInfo[f][szRows][fVI_Colours][1], -1);
- printf("[SERVER]: %d faction vehicles were loaded.", szRows);
- szRows++;
- return 1;
- }
- }
- else print("[SERVER]: 0 faction vehicles were loaded.");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement