/opark funktioniert nicht

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Hallo Leute,
    ich habe ein Problem beim Oamt wenn ich ein car abschleppe und /opark eigebe und dann carrespawn mache oder serverrestart etc. bleiben die autos nicht stehen und ich verstehe nicht warum bitte um hilfe der command


    if(strcmp(cmd,"/opark", true) == 0)
    {


    new vehi;
    new modelstring[45],xstring[45], ystring[45], zstring[45], anglestring[45];
    new Float:vehx, Float:vehy, Float:vehz;
    new vehmodel;
    new platestring[8];
    new Float:vehangle;
    vehi = GetPlayerVehicleID(playerid);
    GetVehicleZAngle(vehi, vehangle);
    vehmodel = GetVehicleModel(vehi);
    GetVehiclePos(vehi, vehx, vehy, vehz);
    if( JobDuty[playerid] == 1)
    {


    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist nicht im Dienst.");
    return 1;
    }
    if(PlayerInfo[playerid][pLeader] == 24 || PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 1)
    {
    //Weiter er darf ja!
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist nicht befugt, diesen Befehl zu benutzen.");
    return 1;
    }
    if(!IsPlayerInAnyVehicle(playerid))
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist in keinem Fahrzeug.");
    return 1;
    }
    for(new i = 0; i < sizeof(PolizeiVehs); i++)
    {
    if(vehi == PolizeiVehs[i])
    {
    RemovePlayerFromVehicle(playerid);
    DestroyVehicle(PolizeiVehs[i]);
    PolizeiVehs[i] = CreateVehicle(vehmodel, vehx+0.5, vehy+0.5, vehz+0.5, vehangle, 79, 1, 900);
    format(platestring, sizeof(platestring), "SAPD %i", i);
    SetVehicleNumberPlate(PolizeiVehs[i],platestring);
    fCarparkInfo[1] [i] [ModelId] = vehmodel;
    fCarparkInfo[1] [i] [ParkX] = vehx;
    fCarparkInfo[1] [i] [ParkY] = vehy;
    fCarparkInfo[1] [i] [ParkZ] = vehz;
    fCarparkInfo[1] [i] [ParkAngle] = vehangle;


    format(modelstring,sizeof(modelstring), "Car%i_Model",i);
    dini_IntSet("LSPDCars.ini",modelstring,fCarparkInfo[1] [i] [ModelId]);


    format(xstring,sizeof(xstring), "Car%i_X",i);
    dini_FloatSet("LSPDCars.ini",xstring,fCarparkInfo[1] [i] [ParkX]);


    format(ystring,sizeof(ystring), "Car%i_Y",i);
    dini_FloatSet("LSPDCars.ini",ystring,fCarparkInfo[1] [i] [ParkY]);


    format(zstring,sizeof(zstring), "Car%i_Z",i);
    dini_FloatSet("LSPDCars.ini",zstring,fCarparkInfo[1] [i] [ParkZ]);


    format(anglestring,sizeof(anglestring), "Car%i_Angle",i);
    dini_FloatSet("LSPDCars.ini",anglestring,fCarparkInfo[1] [i] [ParkAngle]);
    }
    }
    for(new i = 0; i < sizeof(FBIVehs); i++)
    {
    if(vehi == FBIVehs[i])
    {
    RemovePlayerFromVehicle(playerid);
    DestroyVehicle(FBIVehs[i]);
    FBIVehs[i] = CreateVehicle(vehmodel, vehx+0.5, vehy+0.5, vehz+0.5, vehangle, 0, 0, 900);
    format(platestring, sizeof(platestring), "FBI %i", i);
    SetVehicleNumberPlate(FBIVehs[i],platestring);
    fCarparkInfo[2] [i] [ModelId] = vehmodel;
    fCarparkInfo[2] [i] [ParkX] = vehx;
    fCarparkInfo[2] [i] [ParkY] = vehy;
    fCarparkInfo[2] [i] [ParkZ] = vehz;
    fCarparkInfo[2] [i] [ParkAngle] = vehangle;



    format(modelstring,sizeof(modelstring), "Car%i_Model",i);
    dini_IntSet("FBICars.ini",modelstring,fCarparkInfo[2] [i] [ModelId]);


    format(xstring,sizeof(xstring), "Car%i_X",i);
    dini_FloatSet("FBICars.ini",xstring,fCarparkInfo[2] [i] [ParkX]);


    format(ystring,sizeof(ystring), "Car%i_Y",i);
    dini_FloatSet("FBICars.ini",ystring,fCarparkInfo[2] [i] [ParkY]);


    format(zstring,sizeof(zstring), "Car%i_Z",i);
    dini_FloatSet("FBICars.ini",zstring,fCarparkInfo[2] [i] [ParkZ]);


    format(anglestring,sizeof(anglestring), "Car%i_Angle",i);
    dini_FloatSet("FBICars.ini",anglestring,fCarparkInfo[2] [i] [ParkAngle]);
    }
    }
    for(new i = 0; i < sizeof(ArmyVehs); i++)
    {
    if(vehi == ArmyVehs[i])
    {
    RemovePlayerFromVehicle(playerid);
    DestroyVehicle(ArmyVehs[i]);
    ArmyVehs[i] = CreateVehicle(vehmodel, vehx+0.5, vehy+0.5, vehz+0.5, vehangle, 44, 44, 900);
    format(platestring, sizeof(platestring), "Army %i", i);
    SetVehicleNumberPlate(ArmyVehs[i],platestring);
    fCarparkInfo[3] [i] [ModelId] = vehmodel;
    fCarparkInfo[3] [i] [ParkX] = vehx;
    fCarparkInfo[3] [i] [ParkY] = vehy;
    fCarparkInfo[3] [i] [ParkZ] = vehz;
    fCarparkInfo[3] [i] [ParkAngle] = vehangle;



    format(modelstring,sizeof(modelstring), "Car%i_Model",i);
    dini_IntSet("ArmyCars.ini",modelstring,fCarparkInfo[3] [i] [ModelId]);


    format(xstring,sizeof(xstring), "Car%i_X",i);
    dini_FloatSet("ArmyCars.ini",xstring,fCarparkInfo[3] [i] [ParkX]);


    format(ystring,sizeof(ystring), "Car%i_Y",i);
    dini_FloatSet("ArmyCars.ini",ystring,fCarparkInfo[3] [i] [ParkY]);


    format(zstring,sizeof(zstring), "Car%i_Z",i);
    dini_FloatSet("ArmyCars.ini",zstring,fCarparkInfo[3] [i] [ParkZ]);


    format(anglestring,sizeof(anglestring), "Car%i_Angle",i);
    dini_FloatSet("ArmyCars.ini",anglestring,fCarparkInfo[3] [i] [ParkAngle]);
    }
    }
    for(new i = 0; i < sizeof(MedVehs); i++)
    {
    if(vehi == MedVehs[i])
    {
    RemovePlayerFromVehicle(playerid);
    DestroyVehicle(MedVehs[i]);
    MedVehs[i] = CreateVehicle(vehmodel, vehx+0.5, vehy+0.5, vehz+0.5, vehangle, 1, 3, 900);
    format(platestring, sizeof(platestring), "Med %i", i);
    SetVehicleNumberPlate(MedVehs[i],platestring);
    fCarparkInfo[4] [i] [ModelId] = vehmodel;
    fCarparkInfo[4] [i] [ParkX] = vehx;
    fCarparkInfo[4] [i] [ParkY] = vehy;
    fCarparkInfo[4] [i] [ParkZ] = vehz;
    fCarparkInfo[4] [i] [ParkAngle] = vehangle;



    format(modelstring,sizeof(modelstring), "Car%i_Model",i);
    dini_IntSet("MedicCars.ini",modelstring,fCarparkInfo[4] [i] [ModelId]);


    format(xstring,sizeof(xstring), "Car%i_X",i);
    dini_FloatSet("MedicCars.ini",xstring,fCarparkInfo[4] [i] [ParkX]);


    format(ystring,sizeof(ystring), "Car%i_Y",i);
    dini_FloatSet("MedicCars.ini",ystring,fCarparkInfo[4] [i] [ParkY]);


    format(zstring,sizeof(zstring), "Car%i_Z",i);
    dini_FloatSet("MedicCars.ini",zstring,fCarparkInfo[4] [i] [ParkZ]);


    format(anglestring,sizeof(anglestring), "Car%i_Angle",i);
    dini_FloatSet("MedicCars.ini",anglestring,fCarparkInfo[4] [i] [ParkAngle]);
    }
    }
    for(new i = 0; i < sizeof(LCNVehs); i++)
    {
    if(vehi == LCNVehs[i])
    {
    RemovePlayerFromVehicle(playerid);
    DestroyVehicle(LCNVehs[i]);
    LCNVehs[i] = CreateVehicle(vehmodel, vehx+0.5, vehy+0.5, vehz+0.5, vehangle, 40, 40, 900);
    format(platestring, sizeof(platestring), "LCN %i", i);
    SetVehicleNumberPlate(LCNVehs[i],platestring);
    fCarparkInfo[5] [i] [ModelId] = vehmodel;
    fCarparkInfo[5] [i] [ParkX] = vehx;
    fCarparkInfo[5] [i] [ParkY] = vehy;
    fCarparkInfo[5] [i] [ParkZ] = vehz;
    fCarparkInfo[5] [i] [ParkAngle] = vehangle;



    format(modelstring,sizeof(modelstring), "Car%i_Model",i);
    dini_IntSet("LCNCars.ini",modelstring,fCarparkInfo[5] [i] [ModelId]);


    format(xstring,sizeof(xstring), "Car%i_X",i);
    dini_FloatSet("LCNCars.ini",xstring,fCarparkInfo[5] [i] [ParkX]);


    format(ystring,sizeof(ystring), "Car%i_Y",i);
    dini_FloatSet("LCNCars.ini",ystring,fCarparkInfo[5] [i] [ParkY]);


    format(zstring,sizeof(zstring), "Car%i_Z",i);
    dini_FloatSet("LCNCars.ini",zstring,fCarparkInfo[5] [i] [ParkZ]);


    format(anglestring,sizeof(anglestring), "Car%i_Angle",i);
    dini_FloatSet("LCNCars.ini",anglestring,fCarparkInfo[5] [i] [ParkAngle]);
    }
    }
    for(new i = 0; i < sizeof(YakuzaVehs); i++)
    {
    if(vehi == YakuzaVehs[i])
    {
    RemovePlayerFromVehicle(playerid);
    DestroyVehicle(YakuzaVehs[i]);
    YakuzaVehs[i] = CreateVehicle(vehmodel, vehx+0.5, vehy+0.5, vehz+0.5, vehangle, 36, 1, 900);
    format(platestring, sizeof(platestring), "Yaku %i", i);
    SetVehicleNumberPlate(YakuzaVehs[i],platestring);
    fCarparkInfo[6] [i] [ModelId] = vehmodel;
    fCarparkInfo[6] [i] [ParkX] = vehx;
    fCarparkInfo[6] [i] [ParkY] = vehy;
    fCarparkInfo[6] [i] [ParkZ] = vehz;
    fCarparkInfo[6] [i] [ParkAngle] = vehangle;



    format(modelstring,sizeof(modelstring), "Car%i_Model",i);
    dini_IntSet("YakuzaCars.ini",modelstring,fCarparkInfo[6] [i] [ModelId]);


    format(xstring,sizeof(xstring), "Car%i_X",i);
    dini_FloatSet("YakuzaCars.ini",xstring,fCarparkInfo[6] [i] [ParkX]);


    format(ystring,sizeof(ystring), "Car%i_Y",i);
    dini_FloatSet("YakuzaCars.ini",ystring,fCarparkInfo[6] [i] [ParkY]);


    format(zstring,sizeof(zstring), "Car%i_Z",i);
    dini_FloatSet("YakuzaCars.ini",zstring,fCarparkInfo[6] [i] [ParkZ]);


    format(anglestring,sizeof(anglestring), "Car%i_Angle",i);
    dini_FloatSet("YakuzaCars.ini",anglestring,fCarparkInfo[6] [i] [ParkAngle]);
    }
    }
    for(new i = 0; i < sizeof(PraesiVehs); i++)
    {
    if(vehi == PraesiVehs[i])
    {
    RemovePlayerFromVehicle(playerid);
    DestroyVehicle(PraesiVehs[i]);
    PraesiVehs[i] = CreateVehicle(vehmodel, vehx+0.5, vehy+0.5, vehz+0.5,vehangle, 1, 1, 900);
    SetVehicleNumberPlate(PraesiVehs[i],"PRESI");
    fCarparkInfo[7] [i] [ModelId] = vehmodel;
    fCarparkInfo[7] [i] [ParkX] = vehx;
    fCarparkInfo[7] [i] [ParkY] = vehy;
    fCarparkInfo[7] [i] [ParkZ] = vehz;
    fCarparkInfo[7] [i] [ParkAngle] = vehangle;


    format(modelstring,sizeof(modelstring), "Car%i_Model",i);
    dini_IntSet("PresiCars.ini",modelstring,fCarparkInfo[7] [i] [ModelId]);


    format(xstring,sizeof(xstring), "Car%i_X",i);
    dini_FloatSet("PresiCars.ini",xstring,fCarparkInfo[7] [i] [ParkX]);


    format(ystring,sizeof(ystring), "Car%i_Y",i);
    dini_FloatSet("PresiCars.ini",ystring,fCarparkInfo[7] [i] [ParkY]);


    format(zstring,sizeof(zstring), "Car%i_Z",i);
    dini_FloatSet("PresiCars.ini",zstring,fCarparkInfo[7] [i] [ParkZ]);


    format(anglestring,sizeof(anglestring), "Car%i_Angle",i);
    dini_FloatSet("PresiCars.ini",anglestring,fCarparkInfo[7] [i] [ParkAngle]);
    }
    }
    for(new i = 0; i < sizeof(HitmanVehs); i++)
    {
    if(vehi == HitmanVehs[i])
    {
    RemovePlayerFromVehicle(playerid);
    DestroyVehicle(HitmanVehs[i]);
    HitmanVehs[i] = CreateVehicle(vehmodel, vehx+0.5, vehy+0.5, vehz+0.5, vehangle, 0, 0, 900);
    format(platestring, sizeof(platestring), "Hitm %i", i);
    SetVehicleNumberPlate(HitmanVehs[i],platestring);
    fCarparkInfo[8] [i] [ModelId] = vehmodel;
    fCarparkInfo[8] [i] [ParkX] = vehx;
    fCarparkInfo[8] [i] [ParkY] = vehy;
    fCarparkInfo[8] [i] [ParkZ] = vehz;
    fCarparkInfo[8] [i] [ParkAngle] = vehangle;


    format(modelstring,sizeof(modelstring), "Car%i_Model",i);
    dini_IntSet("HitmenCars.ini",modelstring,fCarparkInfo[8] [i] [ModelId]);


    format(xstring,sizeof(xstring), "Car%i_X",i);
    dini_FloatSet("HitmenCars.ini",xstring,fCarparkInfo[8] [i] [ParkX]);


    format(ystring,sizeof(ystring), "Car%i_Y",i);
    dini_FloatSet("HitmenCars.ini",ystring,fCarparkInfo[8] [i] [ParkY]);


    format(zstring,sizeof(zstring), "Car%i_Z",i);
    dini_FloatSet("HitmenCars.ini",zstring,fCarparkInfo[8] [i] [ParkZ]);


    format(anglestring,sizeof(anglestring), "Car%i_Angle",i);
    dini_FloatSet("HitmenCars.ini",anglestring,fCarparkInfo[8] [i] [ParkAngle]);
    }
    }
    for(new i = 0; i < sizeof(NewsVehs); i++)
    {
    if(vehi == NewsVehs[i])
    {
    RemovePlayerFromVehicle(playerid);
    DestroyVehicle(NewsVehs[i]);
    NewsVehs[i] = CreateVehicle(vehmodel, vehx+0.5, vehy+0.5, vehz+0.5, vehangle, 99, 6, 900);
    format(platestring, sizeof(platestring), "CNN %i", i);
    SetVehicleNumberPlate(NewsVehs[i],platestring);
    fCarparkInfo[9] [i] [ModelId] = vehmodel;
    fCarparkInfo[9] [i] [ParkX] = vehx;
    fCarparkInfo[9] [i] [ParkY] = vehy;
    fCarparkInfo[9] [i] [ParkZ] = vehz;
    fCarparkInfo[9] [i] [ParkAngle] = vehangle;



    format(modelstring,sizeof(modelstring), "Car%i_Model",i);
    dini_IntSet("CNNCars.ini",modelstring,fCarparkInfo[9] [i] [ModelId]);


    format(xstring,sizeof(xstring), "Car%i_X",i);
    dini_FloatSet("CNNCars.ini",xstring,fCarparkInfo[9] [i] [ParkX]);


    format(ystring,sizeof(ystring), "Car%i_Y",i);
    dini_FloatSet("CNNCars.ini",ystring,fCarparkInfo[9] [i] [ParkY]);


    format(zstring,sizeof(zstring), "Car%i_Z",i);
    dini_FloatSet("CNNCars.ini",zstring,fCarparkInfo[9] [i] [ParkZ]);


    format(anglestring,sizeof(anglestring), "Car%i_Angle",i);
    dini_FloatSet("CNNCars.ini",anglestring,fCarparkInfo[9] [i] [ParkAngle]);
    }
    }
    for(new i = 0; i < sizeof(TaxiVehs); i++)
    {
    if(vehi == TaxiVehs[i])
    {
    RemovePlayerFromVehicle(playerid);
    DestroyVehicle(TaxiVehs[i]);
    TaxiVehs[i] = CreateVehicle(vehmodel, vehx+0.5, vehy+0.5, vehz+0.5, vehangle, 6, 6, 900);
    format(platestring, sizeof(platestring), "Taxi %i", i);
    SetVehicleNumberPlate(TaxiVehs[i],platestring);
    fCarparkInfo[10] [i] [ModelId] = vehmodel;
    fCarparkInfo[10] [i] [ParkX] = vehx;
    fCarparkInfo[10] [i] [ParkY] = vehy;
    fCarparkInfo[10] [i] [ParkZ] = vehz;
    fCarparkInfo[10] [i] [ParkAngle] = vehangle;



    format(modelstring,sizeof(modelstring), "Car%i_Model",i);
    dini_IntSet("TaxiCars.ini",modelstring,fCarparkInfo[10] [i] [ModelId]);


    format(xstring,sizeof(xstring), "Car%i_X",i);
    dini_FloatSet("TaxiCars.ini",xstring,fCarparkInfo[10] [i] [ParkX]);


    format(ystring,sizeof(ystring), "Car%i_Y",i);
    dini_FloatSet("TaxiCars.ini",ystring,fCarparkInfo[10] [i] [ParkY]);


    format(zstring,sizeof(zstring), "Car%i_Z",i);
    dini_FloatSet("TaxiCars.ini",zstring,fCarparkInfo[10] [i] [ParkZ]);


    format(anglestring,sizeof(anglestring), "Car%i_Angle",i);
    dini_FloatSet("TaxiCars.ini",anglestring,fCarparkInfo[10] [i] [ParkAngle]);
    }
    }
    for(new i = 0; i < sizeof(fastspeedVehs); i++)
    {
    if(vehi == fastspeedVehs[i])
    {
    RemovePlayerFromVehicle(playerid);
    DestroyVehicle(fastspeedVehs[i]);
    fastspeedVehs[i] = CreateVehicle(vehmodel, vehx+0.5, vehy+0.5, vehz+0.5, vehangle, 87, 87, 900);
    format(platestring, sizeof(platestring), "Fspe %i", i);
    SetVehicleNumberPlate(fastspeedVehs[i],platestring);
    fCarparkInfo[12] [i] [ModelId] = vehmodel;
    fCarparkInfo[12] [i] [ParkX] = vehx;
    fCarparkInfo[12] [i] [ParkY] = vehy;
    fCarparkInfo[12] [i] [ParkZ] = vehz;
    fCarparkInfo[12] [i] [ParkAngle] = vehangle;



    format(modelstring,sizeof(modelstring), "Car%i_Model",i);
    dini_IntSet("FastspeedCars.ini",modelstring,fCarparkInfo[12] [i] [ModelId]);


    format(xstring,sizeof(xstring), "Car%i_X",i);
    dini_FloatSet("FastspeedCars.ini",xstring,fCarparkInfo[12] [i] [ParkX]);


    format(ystring,sizeof(ystring), "Car%i_Y",i);
    dini_FloatSet("FastspeedCars.ini",ystring,fCarparkInfo[12] [i] [ParkY]);


    format(zstring,sizeof(zstring), "Car%i_Z",i);
    dini_FloatSet("FastspeedCars.ini",zstring,fCarparkInfo[12] [i] [ParkZ]);


    format(anglestring,sizeof(anglestring), "Car%i_Angle",i);
    dini_FloatSet("FastspeedCars.ini",anglestring,fCarparkInfo[12] [i] [ParkAngle]);
    }
    }
    for(new i = 0; i < sizeof(GroveVehs); i++)
    {
    if(vehi == GroveVehs[i])
    {
    RemovePlayerFromVehicle(playerid);
    DestroyVehicle(GroveVehs[i]);
    GroveVehs[i] = CreateVehicle(vehmodel, vehx+0.5, vehy+0.5, vehz+0.5, vehangle, 86, 86, 900);
    format(platestring, sizeof(platestring), "Grov %i", i);
    SetVehicleNumberPlate(GroveVehs[i],platestring);
    fCarparkInfo[13] [i] [ModelId] = vehmodel;
    fCarparkInfo[13] [i] [ParkX] = vehx;
    fCarparkInfo[13] [i] [ParkY] = vehy;
    fCarparkInfo[13] [i] [ParkZ] = vehz;
    fCarparkInfo[13] [i] [ParkAngle] = vehangle;


    format(modelstring,sizeof(modelstring), "Car%i_Model",i);
    dini_IntSet("GroveCars.ini",modelstring,fCarparkInfo[13] [i] [ModelId]);


    format(xstring,sizeof(xstring), "Car%i_X",i);
    dini_FloatSet("GroveCars.ini",xstring,fCarparkInfo[13] [i] [ParkX]);


    format(ystring,sizeof(ystring), "Car%i_Y",i);
    dini_FloatSet("GroveCars.ini",ystring,fCarparkInfo[13] [i] [ParkY]);


    format(zstring,sizeof(zstring), "Car%i_Z",i);
    dini_FloatSet("GroveCars.ini",zstring,fCarparkInfo[13] [i] [ParkZ]);


    format(anglestring,sizeof(anglestring), "Car%i_Angle",i);
    dini_FloatSet("GroveCars.ini",anglestring,fCarparkInfo[13] [i] [ParkAngle]);
    }
    }
    for(new i = 0; i < sizeof(BallasVehs); i++)
    {
    if(vehi == BallasVehs[i])
    {
    RemovePlayerFromVehicle(playerid);
    DestroyVehicle(BallasVehs[i]);
    BallasVehs[i] = CreateVehicle(vehmodel, vehx+0.5, vehy+0.5, vehz+0.5, vehangle, 22, 22, 900);
    format(platestring, sizeof(platestring), "Ball %i", i);
    SetVehicleNumberPlate(BallasVehs[i],platestring);
    fCarparkInfo[14] [i] [ModelId] = vehmodel;
    fCarparkInfo[14] [i] [ParkX] = vehx;
    fCarparkInfo[14] [i] [ParkY] = vehy;
    fCarparkInfo[14] [i] [ParkZ] = vehz;
    fCarparkInfo[14] [i] [ParkAngle] = vehangle;


    format(modelstring,sizeof(modelstring), "Car%i_Model",i);
    dini_IntSet("BallasCars.ini",modelstring,fCarparkInfo[14] [i] [ModelId]);


    format(xstring,sizeof(xstring), "Car%i_X",i);
    dini_FloatSet("BallasCars.ini",xstring,fCarparkInfo[14] [i] [ParkX]);


    format(ystring,sizeof(ystring), "Car%i_Y",i);
    dini_FloatSet("BallasCars.ini",ystring,fCarparkInfo[14] [i] [ParkY]);


    format(zstring,sizeof(zstring), "Car%i_Z",i);
    dini_FloatSet("BallasCars.ini",zstring,fCarparkInfo[14] [i] [ParkZ]);


    format(anglestring,sizeof(anglestring), "Car%i_Angle",i);
    dini_FloatSet("BallasCars.ini",anglestring,fCarparkInfo[14] [i] [ParkAngle]);
    }
    }
    for(new i = 0; i < sizeof(LSBCVehs); i++)
    {
    if(vehi == LSBCVehs[i])
    {
    RemovePlayerFromVehicle(playerid);
    DestroyVehicle(LSBCVehs[i]);
    LSBCVehs[i] = CreateVehicle(vehmodel, vehx+0.5, vehy+0.5, vehz+0.5, vehangle, 0, 0, 900);
    format(platestring, sizeof(platestring), "Hell %i", i);
    SetVehicleNumberPlate(LSBCVehs[i],platestring);
    fCarparkInfo[15] [i] [ModelId] = vehmodel;
    fCarparkInfo[15] [i] [ParkX] = vehx;
    fCarparkInfo[15] [i] [ParkY] = vehy;
    fCarparkInfo[15] [i] [ParkZ] = vehz;
    fCarparkInfo[15] [i] [ParkAngle] = vehangle;


    format(modelstring,sizeof(modelstring), "Car%i_Model",i);
    dini_IntSet("BikerCars.ini",modelstring,fCarparkInfo[15] [i] [ModelId]);


    format(xstring,sizeof(xstring), "Car%i_X",i);
    dini_FloatSet("BikerCars.ini",xstring,fCarparkInfo[15] [i] [ParkX]);


    format(ystring,sizeof(ystring), "Car%i_Y",i);
    dini_FloatSet("BikerCars.ini",ystring,fCarparkInfo[15] [i] [ParkY]);


    format(zstring,sizeof(zstring), "Car%i_Z",i);
    dini_FloatSet("BikerCars.ini",zstring,fCarparkInfo[15] [i] [ParkZ]);


    format(anglestring,sizeof(anglestring), "Car%i_Angle",i);
    dini_FloatSet("BikerCars.ini",anglestring,fCarparkInfo[15] [i] [ParkAngle]);
    }
    }
    for(new i = 0; i < sizeof(VagosVehs); i++)
    {
    if(vehi == VagosVehs[i])
    {
    RemovePlayerFromVehicle(playerid);
    DestroyVehicle(VagosVehs[i]);
    VagosVehs[i] = CreateVehicle(vehmodel, vehx+0.5, vehy+0.5, vehz+0.5, vehangle, 6, 1, 900);
    format(platestring, sizeof(platestring), "Vago %i", i);
    SetVehicleNumberPlate(VagosVehs[i],platestring);
    fCarparkInfo[16] [i] [ModelId] = vehmodel;
    fCarparkInfo[16] [i] [ParkX] = vehx;
    fCarparkInfo[16] [i] [ParkY] = vehy;
    fCarparkInfo[16] [i] [ParkZ] = vehz;
    fCarparkInfo[16] [i] [ParkAngle] = vehangle;


    format(modelstring,sizeof(modelstring), "Car%i_Model",i);
    dini_IntSet("VagosCars.ini",modelstring,fCarparkInfo[16] [i] [ModelId]);


    format(xstring,sizeof(xstring), "Car%i_X",i);
    dini_FloatSet("VagosCars.ini",xstring,fCarparkInfo[16] [i] [ParkX]);


    format(ystring,sizeof(ystring), "Car%i_Y",i);
    dini_FloatSet("VagosCars.ini",ystring,fCarparkInfo[16] [i] [ParkY]);


    format(zstring,sizeof(zstring), "Car%i_Z",i);
    dini_FloatSet("VagosCars.ini",zstring,fCarparkInfo[16] [i] [ParkZ]);


    format(anglestring,sizeof(anglestring), "Car%i_Angle",i);
    dini_FloatSet("VagosCars.ini",anglestring,fCarparkInfo[16] [i] [ParkAngle]);
    }
    }
    for(new i = 0; i < sizeof(AztecasVehs); i++)
    {
    if(vehi == AztecasVehs[i])
    {
    RemovePlayerFromVehicle(playerid);
    DestroyVehicle(AztecasVehs[i]);
    AztecasVehs[i] = CreateVehicle(vehmodel, vehx+0.5, vehy+0.5, vehz+0.5, vehangle, 93, 93, 900);
    format(platestring, sizeof(platestring), "Aztc %i", i);
    SetVehicleNumberPlate(AztecasVehs[i],platestring);
    fCarparkInfo[17] [i] [ModelId] = vehmodel;
    fCarparkInfo[17] [i] [ParkX] = vehx;
    fCarparkInfo[17] [i] [ParkY] = vehy;
    fCarparkInfo[17] [i] [ParkZ] = vehz;
    fCarparkInfo[17] [i] [ParkAngle] = vehangle;


    format(modelstring,sizeof(modelstring), "Car%i_Model",i);
    dini_IntSet("AztecasCars.ini",modelstring,fCarparkInfo[17] [i] [ModelId]);


    format(xstring,sizeof(xstring), "Car%i_X",i);
    dini_FloatSet("AztecasCars.ini",xstring,fCarparkInfo[17] [i] [ParkX]);


    format(ystring,sizeof(ystring), "Car%i_Y",i);
    dini_FloatSet("AztecasCars.ini",ystring,fCarparkInfo[17] [i] [ParkY]);


    format(zstring,sizeof(zstring), "Car%i_Z",i);
    dini_FloatSet("AztecasCars.ini",zstring,fCarparkInfo[17] [i] [ParkZ]);


    format(anglestring,sizeof(anglestring), "Car%i_Angle",i);
    dini_FloatSet("AztecasCars.ini",anglestring,fCarparkInfo[17] [i] [ParkAngle]);
    }
    }
    for(new i = 0; i < sizeof(BanditosVehs); i++)
    {
    if(vehi == BanditosVehs[i])
    {
    RemovePlayerFromVehicle(playerid);
    DestroyVehicle(BanditosVehs[i]);
    BanditosVehs[i] = CreateVehicle(vehmodel, vehx+0.5, vehy+0.5, vehz+0.5, vehangle, 151, 151, 900);
    format(platestring, sizeof(platestring), "SFBC %i", i);
    SetVehicleNumberPlate(BanditosVehs[i],platestring);
    fCarparkInfo[18] [i] [ModelId] = vehmodel;
    fCarparkInfo[18] [i] [ParkX] = vehx;
    fCarparkInfo[18] [i] [ParkY] = vehy;
    fCarparkInfo[18] [i] [ParkZ] = vehz;
    fCarparkInfo[18] [i] [ParkAngle] = vehangle;


    format(modelstring,sizeof(modelstring), "Car%i_Model",i);
    dini_IntSet("BanditosCars.ini",modelstring,fCarparkInfo[18] [i] [ModelId]);


    format(xstring,sizeof(xstring), "Car%i_X",i);
    dini_FloatSet("BanditosCars.ini",xstring,fCarparkInfo[18] [i] [ParkX]);


    format(ystring,sizeof(ystring), "Car%i_Y",i);
    dini_FloatSet("BanditosCars.ini",ystring,fCarparkInfo[18] [i] [ParkY]);


    format(zstring,sizeof(zstring), "Car%i_Z",i);
    dini_FloatSet("BanditosCars.ini",zstring,fCarparkInfo[18] [i] [ParkZ]);


    format(anglestring,sizeof(anglestring), "Car%i_Angle",i);
    dini_FloatSet("BanditosCars.ini",anglestring,fCarparkInfo[18] [i] [ParkAngle]);
    }
    }
    for(new i = 0; i < sizeof(RSVehs); i++)
    {
    if(vehi == RSVehs[i])
    {
    RemovePlayerFromVehicle(playerid);
    DestroyVehicle(RSVehs[i]);
    RSVehs[i] = CreateVehicle(vehmodel, vehx+0.5, vehy+0.5, vehz+0.5, vehangle, 3, 1, 900);
    format(platestring, sizeof(platestring), "RedS %i", i);
    SetVehicleNumberPlate(RSVehs[i],platestring);
    fCarparkInfo[19] [i] [ModelId] = vehmodel;
    fCarparkInfo[19] [i] [ParkX] = vehx;
    fCarparkInfo[19] [i] [ParkY] = vehy;
    fCarparkInfo[19] [i] [ParkZ] = vehz;
    fCarparkInfo[19] [i] [ParkAngle] = vehangle;


    format(modelstring,sizeof(modelstring), "Car%i_Model",i);
    dini_IntSet("RSCars.ini",modelstring,fCarparkInfo[19] [i] [ModelId]);


    format(xstring,sizeof(xstring), "Car%i_X",i);
    dini_FloatSet("RSCars.ini",xstring,fCarparkInfo[19] [i] [ParkX]);


    format(ystring,sizeof(ystring), "Car%i_Y",i);
    dini_FloatSet("RSCars.ini",ystring,fCarparkInfo[19] [i] [ParkY]);


    format(zstring,sizeof(zstring), "Car%i_Z",i);
    dini_FloatSet("RSCars.ini",zstring,fCarparkInfo[19] [i] [ParkZ]);


    format(anglestring,sizeof(anglestring), "Car%i_Angle",i);
    dini_FloatSet("RSCars.ini",anglestring,fCarparkInfo[19] [i] [ParkAngle]);
    }
    }
    for(new i = 0; i < sizeof(TerrorVehs); i++)
    {
    if(vehi == TerrorVehs[i])
    {
    RemovePlayerFromVehicle(playerid);
    DestroyVehicle(TerrorVehs[i]);
    TerrorVehs[i] = CreateVehicle(vehmodel, vehx+0.5, vehy+0.5, vehz+0.5, vehangle, 1, 1, 900);
    format(platestring, sizeof(platestring), "Terr %i", i);
    SetVehicleNumberPlate(TerrorVehs[i],platestring);
    fCarparkInfo[20] [i] [ModelId] = vehmodel;
    fCarparkInfo[20] [i] [ParkX] = vehx;
    fCarparkInfo[20] [i] [ParkY] = vehy;
    fCarparkInfo[20] [i] [ParkZ] = vehz;
    fCarparkInfo[20] [i] [ParkAngle] = vehangle;


    format(modelstring,sizeof(modelstring), "Car%i_Model",i);
    dini_IntSet("TerrorCars.ini",modelstring,fCarparkInfo[20] [i] [ModelId]);


    format(xstring,sizeof(xstring), "Car%i_X",i);
    dini_FloatSet("TerrorCars.ini",xstring,fCarparkInfo[20] [i] [ParkX]);


    format(ystring,sizeof(ystring), "Car%i_Y",i);
    dini_FloatSet("TerrorCars.ini",ystring,fCarparkInfo[20] [i] [ParkY]);


    format(zstring,sizeof(zstring), "Car%i_Z",i);
    dini_FloatSet("TerrorCars.ini",zstring,fCarparkInfo[20] [i] [ParkZ]);


    format(anglestring,sizeof(anglestring), "Car%i_Angle",i);
    dini_FloatSet("TerrorCars.ini",anglestring,fCarparkInfo[20] [i] [ParkAngle]);
    }
    }
    for(new i = 0; i < sizeof(FeuerVehs); i++)
    {
    if(vehi == FeuerVehs[i])
    {
    RemovePlayerFromVehicle(playerid);
    DestroyVehicle(FeuerVehs[i]);
    FeuerVehs[i] = CreateVehicle(vehmodel, vehx+0.5, vehy+0.5, vehz+0.5, vehangle, 61, 1, 900);
    format(platestring, sizeof(platestring), "FWer %i", i);
    SetVehicleNumberPlate(FeuerVehs[i],platestring);
    fCarparkInfo[22] [i] [ModelId] = vehmodel;
    fCarparkInfo[22] [i] [ParkX] = vehx;
    fCarparkInfo[22] [i] [ParkY] = vehy;
    fCarparkInfo[22] [i] [ParkZ] = vehz;
    fCarparkInfo[22] [i] [ParkAngle] = vehangle;


    format(modelstring,sizeof(modelstring), "Car%i_Model",i);
    dini_IntSet("FeuerCars.ini",modelstring,fCarparkInfo[22] [i] [ModelId]);


    format(xstring,sizeof(xstring), "Car%i_X",i);
    dini_FloatSet("FeuerCars.ini",xstring,fCarparkInfo[22] [i] [ParkX]);


    format(ystring,sizeof(ystring), "Car%i_Y",i);
    dini_FloatSet("FeuerCars.ini",ystring,fCarparkInfo[22] [i] [ParkY]);


    format(zstring,sizeof(zstring), "Car%i_Z",i);
    dini_FloatSet("FeuerCars.ini",zstring,fCarparkInfo[22] [i] [ParkZ]);


    format(anglestring,sizeof(anglestring), "Car%i_Angle",i);
    dini_FloatSet("FeuerCars.ini",anglestring,fCarparkInfo[22] [i] [ParkAngle]);
    }
    }
    for(new i = 0; i < sizeof(RMVehs); i++)
    {
    if(vehi == RMVehs[i])
    {
    RemovePlayerFromVehicle(playerid);
    DestroyVehicle(RMVehs[i]);
    RMVehs[i] = CreateVehicle(vehmodel, vehx+0.5, vehy+0.5, vehz+0.5, vehangle, 50, 50, 900);
    format(platestring, sizeof(platestring), "Rusk: %i", i);
    SetVehicleNumberPlate(RMVehs[i],platestring);
    fCarparkInfo[23] [i] [ModelId] = vehmodel;
    fCarparkInfo[23] [i] [ParkX] = vehx;
    fCarparkInfo[23] [i] [ParkY] = vehy;
    fCarparkInfo[23] [i] [ParkZ] = vehz;
    fCarparkInfo[23] [i] [ParkAngle] = vehangle;


    format(modelstring,sizeof(modelstring), "Car%i_Model",i);
    dini_IntSet("RuskjaCars.ini",modelstring,fCarparkInfo[23] [i] [ModelId]);


    format(xstring,sizeof(xstring), "Car%i_X",i);
    dini_FloatSet("RuskjaCars.ini",xstring,fCarparkInfo[23] [i] [ParkX]);


    format(ystring,sizeof(ystring), "Car%i_Y",i);
    dini_FloatSet("RuskjaCars.ini",ystring,fCarparkInfo[23] [i] [ParkY]);


    format(zstring,sizeof(zstring), "Car%i_Z",i);
    dini_FloatSet("RuskjaCars.ini",zstring,fCarparkInfo[23] [i] [ParkZ]);


    format(anglestring,sizeof(anglestring), "Car%i_Angle",i);
    dini_FloatSet("RuskjaCars.ini",anglestring,fCarparkInfo[23] [i] [ParkAngle]);
    }
    }
    for(new i = 0; i < sizeof(oAmtVehs); i++)
    {
    if(vehi == oAmtVehs[i])
    {
    RemovePlayerFromVehicle(playerid);
    DestroyVehicle(oAmtVehs[i]);
    oAmtVehs[i] = CreateVehicle(vehmodel, vehx+0.5, vehy+0.5, vehz+0.5, vehangle, 7, 1, 900);
    format(platestring, sizeof(platestring), "OAmt %i", i);
    SetVehicleNumberPlate(oAmtVehs[i],platestring);
    fCarparkInfo[24] [i] [ModelId] = vehmodel;
    fCarparkInfo[24] [i] [ParkX] = vehx;
    fCarparkInfo[24] [i] [ParkY] = vehy;
    fCarparkInfo[24] [i] [ParkZ] = vehz;
    fCarparkInfo[24] [i] [ParkAngle] = vehangle;



    format(modelstring,sizeof(modelstring), "Car%i_Model",i);
    dini_IntSet("OAmtCars.ini",modelstring,fCarparkInfo[24] [i] [ModelId]);


    format(xstring,sizeof(xstring), "Car%i_X",i);
    dini_FloatSet("OAmtCars.ini",xstring,fCarparkInfo[24] [i] [ParkX]);


    format(ystring,sizeof(ystring), "Car%i_Y",i);
    dini_FloatSet("OAmtCars.ini",ystring,fCarparkInfo[24] [i] [ParkY]);


    format(zstring,sizeof(zstring), "Car%i_Z",i);
    dini_FloatSet("OAmtCars.ini",zstring,fCarparkInfo[24] [i] [ParkZ]);


    format(anglestring,sizeof(anglestring), "Car%i_Angle",i);
    dini_FloatSet("OAmtCars.ini",anglestring,fCarparkInfo[24] [i] [ParkAngle]);
    }
    }
    new i;
    while(i<MAX_PLAYERS)
    {
    new s;
    while(s<MaxVeh)
    {
    if(PlayerCar[i][s][CarId] == GetPlayerVehicleID(playerid))
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    new Float:X,Float:Y,Float:Z;
    new Float:z_rot;
    GetPlayerPos(playerid, X,Y,Z);
    GetVehicleZAngle(vehicleid, z_rot);
    PlayerCar[i][s][CarPos_x] = X;
    PlayerCar[i][s][CarPos_y] = Y;
    PlayerCar[i][s][CarPos_z] = Z;
    PlayerCar[i][s][CarRotate] = z_rot;
    PlayerCar[i][s][CarGesperrt] = 1;
    SendClientMessage(playerid,COLOR_WHITE,"Du hast das Fahrzeug nun hier geparkt und gesperrt.");
    SendClientMessage(playerid,COLOR_WHITE,"Der Besitzer muss es sich zuerst wieder freikaufen um es zu benutzen!");
    SendClientMessage(i, COLOR_YELLOW, "Info: Das Ordnungsamt hat dein Auto abgeschleppt! Du kannst es dort wieder freikaufen.");
    return true;
    }
    s++;
    }
    i++;
    }
    return 1;
    }


    wäre echt super von euch
    Mit freundlichen Grüßen iSoFame :)