Guten Tag,
Kurz und Knapp bei meinem Fraktions Cars System klappt meien Respawn Variante nicht soo ganz ;)...
Der Code :
enum FrakCars {
Fraktion,
___vVehicleModel,
Float:___xX,
Float:___yY,
Float:___zZ,
Float:___aA,
___cColor1,
___cColor2,
___rRespawnDelay
}
new FraktionsCars[][FrakCars] = {
//Fraktion, Vehicle Model, X , Y, Z, Angle , Color 1 , Color 2 , Respawn Zeit
// San Andreas Fire Department Cars (22)
{22,407,2459.50000000,-2116.60009766,13.89999962,0.00000000,3,1,-1},
{22,407,2464.00000000,-2116.50000000,13.89999962,0.00000000,3,1,-1},
{22,407,2468.69995117,-2116.80004883,13.89999962,0.00000000,3,1,-1},
{22,407,2473.80004883,-2117.00000000,13.89999962,0.00000000,3,1,-1},
{22,407,2479.39990234,-2117.10009766,13.89999962,0.00000000,3,1,-1},
{22,544,2485.39990234,-2112.50000000,13.89999962,0.00000000,3,1,-1},
{22,544,2490.00000000,-2112.89990234,13.89999962,0.00000000,3,1,-1},
{22,544,2494.80004883,-2113.00000000,13.89999962,0.00000000,3,1,-1},
{22,544,2499.60009766,-2113.60009766,13.89999962,0.00000000,3,1,-1},
{22,544,2503.89990234,-2113.19995117,13.89999962,0.00000000,3,1,-1},
{22,544,2507.39990234,-2113.10009766,13.89999962,0.00000000,3,1,-1},
{22,598,2466.10009766,-2071.10009766,13.39999962,0.00000000,3,1,-1},
{22,598,2472.10009766,-2071.30004883,13.39999962,0.00000000,3,1,-1},
{22,598,2469.10009766,-2071.10009766,13.39999962,0.00000000,3,1,-1},
{22,598,2457.39990234,-2071.30004883,13.39999962,0.00000000,3,1,-1},
{22,598,2478.30004883,-2071.39990234,13.39999962,0.00000000,3,1,-1},
{22,598,2485.60009766,-2071.00000000,13.39999962,0.00000000,3,1,-1},
{22,598,2461.69995117,-2072.00000000,13.39999962,0.00000000,3,1,-1}
};
Respawn :
for(new i=0; i<sizeof FraktionsCars; i++)
{
if(FraktionsCars[i][Fraktion] == uInfo[playerid][Fraktion])
{
DestroyVehicle(FraktionsCars[i][Fraktion]);
CreateVehicle(FraktionsCars[i][___vVehicleModel],FraktionsCars[i][___xX],FraktionsCars[i][___yY],FraktionsCars[i][___zZ],FraktionsCars[i][___aA],FraktionsCars[i][___cColor1],FraktionsCars[i][___cColor2],FraktionsCars[i][___rRespawnDelay]);
}
}
Würde mich sehr über Hilfe freuen
Danke schonmal im vorraus...
Mit freundlichen Grüßen
- Big_Ben
/edit Erledigt CreateVehicle eine Variable zuweisen und es passt *face*