Doch sie werden erstellt hier:
switch(frak)
{
case 1:{strmid(FrakVehicle[idx][vPlate], "Regierung", 0, 10, 10);CreateFrakVehicle(ModelID,VehPos[0],VehPos[1],VehPos[2],VehPos[3],color[0],color[1],frak,0,FrakVehicle[idx][vPlate],FrakVehicle[idx][vID]);}
case 2:{strmid(FrakVehicle[idx][vPlate], "SA:PD", 0, 6, 6);CreateFrakVehicle(ModelID,VehPos[0],VehPos[1],VehPos[2],VehPos[3],color[0],color[1],frak,0,FrakVehicle[idx][vPlate],FrakVehicle[idx][vID]);}
case 3:{strmid(FrakVehicle[idx][vPlate], "FBI", 0, 6, 6);CreateFrakVehicle(ModelID,VehPos[0],VehPos[1],VehPos[2],VehPos[3],color[0],color[1],frak,0,FrakVehicle[idx][vPlate],FrakVehicle[idx][vID]);}
case 4:{strmid(FrakVehicle[idx][vPlate], "Army", 0, 6, 6);CreateFrakVehicle(ModelID,VehPos[0],VehPos[1],VehPos[2],VehPos[3],color[0],color[1],frak,0,FrakVehicle[idx][vPlate],FrakVehicle[idx][vID]);}
case 5:{strmid(FrakVehicle[idx][vPlate], "Medic", 0, 6, 6);CreateFrakVehicle(ModelID,VehPos[0],VehPos[1],VehPos[2],VehPos[3],color[0],color[1],frak,0,FrakVehicle[idx][vPlate],FrakVehicle[idx][vID]);}
case 6:{strmid(FrakVehicle[idx][vPlate], "RASA", 0, 6, 6);CreateFrakVehicle(ModelID,VehPos[0],VehPos[1],VehPos[2],VehPos[3],color[0],color[1],frak,0,FrakVehicle[idx][vPlate],FrakVehicle[idx][vID]);}
case 7:{strmid(FrakVehicle[idx][vPlate], "SN", 0, 6, 6);CreateFrakVehicle(ModelID,VehPos[0],VehPos[1],VehPos[2],VehPos[3],color[0],color[1],frak,0,FrakVehicle[idx][vPlate],FrakVehicle[idx][vID]);}
case 8:{strmid(FrakVehicle[idx][vPlate], "HA", 0, 6, 6);CreateFrakVehicle(ModelID,VehPos[0],VehPos[1],VehPos[2],VehPos[3],color[0],color[1],frak,0,FrakVehicle[idx][vPlate],FrakVehicle[idx][vID]);}
case 9:{strmid(FrakVehicle[idx][vPlate], "WA", 0, 6, 6);CreateFrakVehicle(ModelID,VehPos[0],VehPos[1],VehPos[2],VehPos[3],color[0],color[1],frak,0,FrakVehicle[idx][vPlate],FrakVehicle[idx][vID]);}
case 10:{strmid(FrakVehicle[idx][vPlate], "TA", 0, 6, 6);CreateFrakVehicle(ModelID,VehPos[0],VehPos[1],VehPos[2],VehPos[3],color[0],color[1],frak,0,FrakVehicle[idx][vPlate],FrakVehicle[idx][vID]);}
case 11:{strmid(FrakVehicle[idx][vPlate], "GSF", 0, 6, 6);CreateFrakVehicle(ModelID,VehPos[0],VehPos[1],VehPos[2],VehPos[3],color[0],color[1],frak,0,FrakVehicle[idx][vPlate],FrakVehicle[idx][vID]);}
case 12:{strmid(FrakVehicle[idx][vPlate], "Ballas", 0, 6, 6);CreateFrakVehicle(ModelID,VehPos[0],VehPos[1],VehPos[2],VehPos[3],color[0],color[1],frak,0,FrakVehicle[idx][vPlate],FrakVehicle[idx][vID]);}
case 13:{strmid(FrakVehicle[idx][vPlate], "LAtz", 0, 6, 6);CreateFrakVehicle(ModelID,VehPos[0],VehPos[1],VehPos[2],VehPos[3],color[0],color[1],frak,0,FrakVehicle[idx][vPlate],FrakVehicle[idx][vID]);}
case 14:{strmid(FrakVehicle[idx][vPlate], "LSV", 0, 6, 6);CreateFrakVehicle(ModelID,VehPos[0],VehPos[1],VehPos[2],VehPos[3],color[0],color[1],frak,0,FrakVehicle[idx][vPlate],FrakVehicle[idx][vID]);}
case 15:{strmid(FrakVehicle[idx][vPlate], "YKZ", 0, 6, 6);CreateFrakVehicle(ModelID,VehPos[0],VehPos[1],VehPos[2],VehPos[3],color[0],color[1],frak,0,FrakVehicle[idx][vPlate],FrakVehicle[idx][vID]);}
case 16:{strmid(FrakVehicle[idx][vPlate], "SFR", 0, 6, 6);CreateFrakVehicle(ModelID,VehPos[0],VehPos[1],VehPos[2],VehPos[3],color[0],color[1],frak,0,FrakVehicle[idx][vPlate],FrakVehicle[idx][vID]);}
case 17:{strmid(FrakVehicle[idx][vPlate], "Triaden", 0, 6, 6);CreateFrakVehicle(ModelID,VehPos[0],VehPos[1],VehPos[2],VehPos[3],color[0],color[1],frak,0,FrakVehicle[idx][vPlate],FrakVehicle[idx][vID]);}
case 18:{strmid(FrakVehicle[idx][vPlate], "RM", 0, 6, 6);CreateFrakVehicle(ModelID,VehPos[0],VehPos[1],VehPos[2],VehPos[3],color[0],color[1],frak,0,FrakVehicle[idx][vPlate],FrakVehicle[idx][vID]);}
case 19:{strmid(FrakVehicle[idx][vPlate], "LCN", 0, 6, 6);CreateFrakVehicle(ModelID,VehPos[0],VehPos[1],VehPos[2],VehPos[3],color[0],color[1],frak,0,FrakVehicle[idx][vPlate],FrakVehicle[idx][vID]);}
case 20:{strmid(FrakVehicle[idx][vPlate], "Kirche", 0, 6, 6);CreateFrakVehicle(ModelID,VehPos[0],VehPos[1],VehPos[2],VehPos[3],color[0],color[1],frak,0,FrakVehicle[idx][vPlate],FrakVehicle[idx][vID]);}
case 21:{strmid(FrakVehicle[idx][vPlate], "SA:DS", 0, 6, 6);CreateFrakVehicle(ModelID,VehPos[0],VehPos[1],VehPos[2],VehPos[3],color[0],color[1],frak,0,FrakVehicle[idx][vPlate],FrakVehicle[idx][vID]);}
}
mit dem selbst definierten Befehlt:
CreateFrakVehicle(modelid, Float:X, Float:Y, Float:Z, Float:R, color1, color2,frakid,rank,plate,ID)
hier die definition dafür:
public CreateFrakVehicle(modelid, Float:X, Float:Y, Float:Z, Float:R, color1, color2,frakid,rank,plate,ID)
{
new v = CreateVehicle(modelid,Float:X,Float:Y,Float:Z,Float:R,color1,color2,-1);
SetVehicleZAngle(v,FrakVehicle[v][v_A]);
spawncar_frak[v] = frakid;
spawncar_rank[v] = rank;
FrakVehicle[v][vCarID] = v;
SetVehicleNumberPlate(v,FrakVehicle[v][vPlate]);
VehicleColor1[v] = color1;
VehicleColor2[v] = color2;
FrakVehicle[v][vID] = ID;
printf("model: %i idspawn: %i iddatenbank: %i",GetVehicleModel(v),FrakVehicle[v][vCarID],ID);
}