16.10.2016, 13:26
(
Последний раз редактировалось Eoussama; 16.10.2016 в 17:55.
)
Quote:
Load the vehicles under OnGameModeInit. There are plenty of tutorials available to you, feel free to use them.
|
PHP код:
printf("||******************************PRIVATE VEHICLES*******************************||");
for(new i=0; i<2000; i++){
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(str, sizeof(str), "{FFFF00}%s{FFFFFF}'s Vehicle", VehicleInfo[i][vOwner]);
Attach3DTextLabelToVehicle(Create3DTextLabel(str, YELLOW, 0.0, 0.0, 0.0, 20, 0, 0), i, 0.0, 0.0, 1.5);
SetVehicleNumberPlate(i, VehicleInfo[i][vOwner]);
printf("[PRIVATE VEHICLE]: %s's private vehicle has loaded, ID: %d", VehicleInfo[i][vOwner], i);
}
}