Load vehicles from INI files
#3

Quote:
Originally Posted by Threshold
Посмотреть сообщение
Load the vehicles under OnGameModeInit. There are plenty of tutorials available to you, feel free to use them.
I already solved this, but thanks for your answer anyway, here how I did it,

PHP код:
printf("||******************************PRIVATE VEHICLES*******************************||");
    for(new 
i=0i<2000i++){
           if(
fexist(PVPath(i))){
               new 
str[MAX_PLAYER_NAME+60];
            
INI_ParseFile(PVPath(i), "LoadVehicle", .bExtra true, .extra i);
            
CreateVehicle(VehicleInfo[i][vModel], VehicleInfo[i][vPosX], VehicleInfo[i][vPosY], VehicleInfo[i][vPosZ], VehicleInfo[i][vAng], VehicleInfo[i][vColor1], VehicleInfo[i][vColor2], 300000);
            
format(strsizeof(str), "{FFFF00}%s{FFFFFF}'s Vehicle"VehicleInfo[i][vOwner]);
            
Attach3DTextLabelToVehicle(Create3DTextLabel(strYELLOW0.00.00.02000), i0.00.01.5);
            
SetVehicleNumberPlate(iVehicleInfo[i][vOwner]);
            
printf("[PRIVATE VEHICLE]: %s's private vehicle has loaded, ID: %d"VehicleInfo[i][vOwner], i);
        }
    } 
Reply


Messages In This Thread
Load vehicles from INI files - by Eoussama - 16.10.2016, 11:48
Re: Load vehicles from INI files - by Threshold - 16.10.2016, 13:15
Re: Load vehicles from INI files - by Eoussama - 16.10.2016, 13:26

Forum Jump:


Users browsing this thread: 1 Guest(s)