Hilfe bei Autohaus

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,


    Ich habe einen Gamemode, wo alles Funktioniert nur das autohaussystem nicht. Es ist ein System wo man in so nen Koffer reinläuft und dann sollte man eigendlich zur auswahl kommen aber wenn man in den Koffer reinläuft passiert halt einfach nichts.
    Kann mir da jemand per Teamviewer helfen ich habe sowasvon keinen plan davon.


    Gruß Shorty


    //==== Pickups ====//
    new EssenPickup[4];
    new khaufzug,khaufzug2;


    new Dtc_LockOnSpawn = 1;


    enum dtcCarModell
    {
    dtc_Autohaus,
    dtc_CarModel,
    dtc_CarPreis
    };
    new dtcKaufliste[][dtcCarModell] = { //CARSYS
    //0 = 2 Räder
    {0,462,7000}, //Faggio
    {0,581,170000}, //BF-400
    {0,521,180000}, //FCR-900
    {0,463,160000}, //Freeway
    {0,461,190000}, //PCJ-600
    {0,468,150000}, //Sanchez
    {0,586,140000}, //Wayfarer
    {0,471,30000}, //Quad
    {0,522,320000}, //NRG

    // 1 = Bugy
    {1,470,1}, // Buggy ^^
    // 2 = Vagos Base Autohaus
    {0,467,36000}, //Oceanic
    {0,536,60000}, //Blade
    {0,534,67000}, //Remigton
    {0,567,62000}, //Savanna
    {0,535,20000}, //Slamvan
    {0,412,45500}, //Voodo
    {0,426,70000}, //Premier
    {0,421,96000}, // Washington
    {0,518,56000}, //Buccanee
    {0,542,35000}, //Clover
    {0,496,55500}, //Blistac
    {0,439,55000}, //Stallion
    {0,550,62000}, //Sunrise
    {0,540,70000}, //Vincent
    {0,404,61500}, //Peren
    {0,413,80000}, //Pony
    {0,458,82500}, //Solair
    {0,479,92500}, //Regina
    {0,440,99500}, //Rumpo
    {0,423,100000}, //Eiswagen (Mrwhoop)
    {0,483,106000}, //Camper
    {0,500,102500}, //Mesa
    {0,508,85000}, //Journey
    {0,554,85000}, //Yosemite
    {0,561,60000}, //Startum
    {0,489,102000}, //Rancher
    {0,543,115000}, //Sadler
    {0,442,120000}, //Leichenwagen
    {0,527,60000}, //Cadrona
    {0,531,60000}, //Farmtraktor
    // An Oamt Base
    {0,533,170000}, //Feltzer
    {0,587,450000}, //Euros
    {0,434,300000}, //Hotknife
    {0,495,600000}, //Sandking
    {0,482,550000}, //Burrito
    {0,489,550000}, //Rancher
    {0,568,350000}, //Bandito
    {0,579,190000}, //Huntley
    {0,507,196999}, //Elegant
    {0,419,120000}, //Esperant
    {0,526,194000}, //Fortune
    {0,602,109995}, //Alpha
    {0,400,150000}, //Landstalker
    {0,545,100000}, //Hustler
    {0,405,120000}, //Sentinel
    {0,445,125000}, //Admiral
    {0,475,125000}, //Sabre
    {0,409,1200000}, //Stretch
    {0,562,225000}, //Elegy
    {0,560,250000}, //Sultan
    {0,429,440000}, //Banshee
    {0,402,258000}, //Buffalo
    {0,541,280000}, //Bullet
    {0,415,248000}, //Cheetah
    {0,589,176000}, //Club
    {0,411,200000}, //Infernus
    {0,559,145000}, //Jester
    {0,603,155000}, //Phönix
    {0,506,270000}, //Supergt
    {0,451,425000}, //Turismo
    {0,470,525000}, //Patriot
    {0,558,180000}, //Uranus
    {0,480,140000}, //Comet
    {0,477,295000}, //Zr350
    {0,565,120000}, //Flash
    //4 = Flugzeuge
    {4,487,6000000}, //Maverick
    {4,469,3000000}, //Spearrow
    {4,417,4500000}, //Leviathan
    {4,511,2000000}, //Beagle
    {4,593,1500000}, //Dodo
    {4,513,1500000}, //StuntFlugzeug
    {4,519,12000000}, //Shamal
    //5 = Boote
    {5,446,5000000}, //Squallo
    {5,452,4000000}, //Speeder
    {5,453,3500000}, //Reefer
    {5,454,4500000}, //Tropic
    {5,473,1250000}, //Dinghy
    {5,493,4600000}, //Jetmax
    {5,460,4500000} //Skimmer
    };


    new Float:DtcParkPlatz[AUTOHAUSER][MAXPARKPLATZE][4] = {
    {//2Räder LS
    {2471.7231, -1558.3952, 23.5809, 0.0},
    {2474.7231, -1558.3952, 23.5751, 0.0},
    {2477.7231, -1558.3952, 23.5771, 0.0},
    {2480.7231, -1558.3952, 23.5921, 0.0}
    },
    {//bug
    {-5000.0, -50000.0, -50000.0, 5000000.500000},
    {-5000.0, -50000.0, -50000.0, 500000.0},
    {-5000.0, -50000.0, -50000.0, 500000.0},
    {-5000.0, -50000.0, -50000.0, 500000.0}
    },
    {//LS CarSeller
    {2148.0617, -1138.3233, 25.1975, 270.0},
    {2148.5222, -1143.1345, 24.6887, 270.0},
    {2147.8491, -1148.3714, 24.1134, 270.0},
    {2147.5104, -1152.7818, 23.6500, 270.0}
    },
    {//LS Studio
    {743.0629, -1334.0764, 13.2483, 180.0},
    {748.0629, -1334.0764, 13.2708, 180.0},
    {753.0629, -1334.0764, 13.2483, 180.0},
    {758.0629, -1334.0764, 13.2708, 180.0}
    },
    {//LS AIRPORT
    {1725.5981,-2414.4631,13.5547,91.2938},
    {1648.4031,-2413.2231,13.5547,91.2938},
    {1566.8810,-2416.3340,13.5547,89.3299},
    {1899.1111,-2374.5435,13.8934,270.3974}
    },
    {//BOOT
    {-142.2666,-1800.0825,5.6692,257.9329},
    {-134.0139,-1757.4247,5.6375,257.9329},
    {-142.5279,-1800.5029,5.6429,257.3058},
    {-146.4115,-1820.1492,5.5507,257.9677}
    }
    };
    new Float:DtcSonstiges[AUTOHAUSER][5][6] = {
    {//2Räder LS
    {2471.0097, -1542.7354, 24.1628, 0.0}, // Info Zeichen etc.
    {2475.3952, -1537.1600, 28.6523, 340.2388}, // LiveView Car
    {2472.8505, -1533.2855, 29.0964, 0.0}, // LiveView Cam
    {2468.4548, -1534.1237, 29.1007, 0.0}, // LiveView Player
    {2470.8825, -1544.0834, 24.0406, 178.5745} // LiveView Player Exit
    },
    {//Bug
    {5000000.0, 0.0, -40.0, 0.0},
    {5000000.0, 0.0, -40.0, 0.0},
    {5000000.0, 0.0, -40.0, 0.0},
    {5000000.0, 0.0, -40.0, 0.0},
    {5000000.0, 0.0, -40.0, 0.0}
    },
    {//LS CarSeller
    {2131.7124, -1151.0965, 24.0838, 0.0}, // Info Zeichen etc.
    {2131.7192, -1163.0882, 27.8755, 301.3163}, // LiveView Car
    {2133.0817, -1156.3632, 28.1484, 0.0}, // LiveView Cam
    {2133.0031, -1154.4589, 28.1484, 0.0}, // LiveView Player
    {2131.7634, -1148.4149, 24.3788, 359.2809} // LiveView Player Exit
    },
    {//LS Studio
    {750.7259, -1356.9744, 13.5000, 0.0}, // Info Zeichen etc.
    {740.5779, -1365.2796, 25.4192, 225.3830}, // LiveView Car
    {741.2583, -1370.9835, 25.6922, 0.0}, // LiveView Cam
    {741.7747, -1376.3156, 25.6922, 0.0}, // LiveView Player
    {753.6887, -1338.2799, 13.5320, 14.7941} // LiveView Player Exit
    },
    {//LS AIRPORT
    {1774.7336,-2433.5491,13.5547,252.3329}, // Info Zeichen etc.
    {1765.1451,-2286.7554,26.7960,313.5673}, // LiveView Car
    {1765.4340,-2271.0989,31.0900,181.3627}, // LiveView Cam
    {1765.4340,-2271.0989,31.0900,181.3627}, // LiveView Player
    {1778.3945,-2432.7996,13.5547,171.6871} // LiveView Player Exit
    },
    {//BOOT
    {-207.079453, -1778.610962, 1.718162}, // Info Zeichen etc.
    {-173.4363,-1748.6068,2.11650}, // LiveView Car
    {-175.1743,-1757.7203,7.5683}, // LiveView Cam
    {-175.1743,-1757.7203,0.5683}, // LiveView Player
    {-204.5906,-1776.0704,1.8197} // LiveView Player Exit
    }
    };


    enum dtc_PlayerCar
    {
    CarId,
    CarOwner[MAX_PLAYER_NAME],
    CarModel,
    Float:CarPos_x,
    Float:CarPos_y,
    Float:CarPos_z,
    Float:CarRotate,
    CarNitro,
    CarHyd,
    CarWheel,
    CarAusp,
    CarSideL,
    CarSideR,
    CarFB,
    CarRB,
    CarSpoiler,
    CarRoof,
    CarHood,
    CarVents,
    CarLamps,
    CarPJ,
    CarC1,
    CarC2,
    CarPreis,
    CarArrest,
    Plate[15],
    };


    new PlayerCar[MAX_PLAYERS][MaxVeh][dtc_PlayerCar];


    for(new x = 0; x < AUTOHAUSER;x++)
    {
    if(pickupid == Dtc_Info[x] && !Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]])
    {
    TogglePlayerControllable(playerid, 0);
    SetPlayerVirtualWorld(playerid,55+playerid);
    new string[246];
    dtc_AutohausCar[playerid] = 0;
    dtc_AutohausCat[playerid] = x;
    new c1 = random(120);
    new c2 = random(120);
    new car;
    new preis;
    for(new ah = 0; ah < sizeof(dtcKaufliste);ah++)
    {
    if(car == 0 && dtcKaufliste[ah][dtc_Autohaus] == x)
    {
    car = dtcKaufliste[ah][dtc_CarModel];
    preis = dtcKaufliste[ah][dtc_CarPreis];
    }
    }
    SetPlayerCameraPos(playerid, DtcSonstiges[x][2][0],DtcSonstiges[x][2][1],DtcSonstiges[x][2][2]);
    SetPlayerCameraLookAt(playerid, DtcSonstiges[x][1][0],DtcSonstiges[x][1][1],DtcSonstiges[x][1][2]);
    dtc_AutohausSCar[playerid] = CreateVehicle(car, DtcSonstiges[x][1][0],DtcSonstiges[x][1][1],DtcSonstiges[x][1][2],DtcSonstiges[x][1][3],c1,c2,-1);
    SSetPlayerPos(playerid, DtcSonstiges[x][3][0],DtcSonstiges[x][3][1],DtcSonstiges[x][3][2]);
    SetVehicleVirtualWorld(dtc_AutohausSCar[playerid],55+playerid);
    format(string,sizeof(string),"~r~---------- AUTOHAUS ----------~n~~g~Fahrzeug: ~w~%s~n~~g~Preis: ~w~%d$~n~~b~Auswaehlen:~n~~w~ <Num 4<~b~&~w~>Num 6> ~n~~b~Kaufen:~w~ Enter ~n~~b~Abbrechen:~w~ Tab",CarName[car-400],preis);
    if(!CarKauf[playerid])
    {
    CarKauf[playerid] = TextDrawCreate(200,310,string);
    TextDrawAlignment(CarKauf[playerid],1);
    TextDrawUseBox(CarKauf[playerid],1);
    TextDrawBoxColor(CarKauf[playerid],0x000000FF);
    TextDrawSetOutline(CarKauf[playerid],1);
    TextDrawBackgroundColor(CarKauf[playerid],Schwarz);
    TextDrawSetOutline(CarKauf[playerid],1);
    TextDrawFont(CarKauf[playerid], 2);
    TextDrawTextSize(CarKauf[playerid],450,410);
    TextDrawShowForPlayer(playerid,CarKauf[playerid]);
    }
    else
    {
    TextDrawHideForPlayer(playerid,CarKauf[playerid]);
    TextDrawSetString(CarKauf[playerid],string);
    TextDrawShowForPlayer(playerid,CarKauf[playerid]);
    }
    }
    else if(pickupid == Dtc_Info[x] && Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]])
    {
    new mv = MaxVeh;
    if(mv > 1)
    {
    SendClientMessage(playerid, Grau, " Du besitzt schon ein Fahrzeug mit deinem Ausgewählten Schlüssel !");
    SendClientMessage(playerid, Grau, " Verkaufe es mit /verkauto oder wechsel den Schlüssel mit /carkey !");
    }
    else
    {
    SendClientMessage(playerid, Grau, " Du besitzt schon ein Fahrzeug! Verkaufe es mit /verkauto");
    }
    }
    }


    //edit Code

    <X<X<X

    Einmal editiert, zuletzt von Shortyyyy ()

    • Offizieller Beitrag

    Was für einen Gamemode benutzt du denn?


    „Nicht das, was du nicht weißt, bringt dich in Schwierigkeiten, sondern dass, was du sicher zu wissen glaubst, obwohl es gar nicht wahr ist.“
    Mark Twain

    ---
    ICH BIN NUR HIER UM LEUTE ANZUSCHREIEN

  • Seegras, hab dir eine PN Geschickt.


    //==== Pickups ====//
    new EssenPickup[4];
    new khaufzug,khaufzug2;


    new Dtc_LockOnSpawn = 1;


    enum dtcCarModell
    {
    dtc_Autohaus,
    dtc_CarModel,
    dtc_CarPreis
    };
    new dtcKaufliste[][dtcCarModell] = { //CARSYS
    //0 = 2 Räder
    {0,462,7000}, //Faggio
    {0,581,170000}, //BF-400
    {0,521,180000}, //FCR-900
    {0,463,160000}, //Freeway
    {0,461,190000}, //PCJ-600
    {0,468,150000}, //Sanchez
    {0,586,140000}, //Wayfarer
    {0,471,30000}, //Quad
    {0,522,320000}, //NRG

    // 1 = Bugy
    {1,470,1}, // Buggy ^^
    // 2 = Vagos Base Autohaus
    {0,467,36000}, //Oceanic
    {0,536,60000}, //Blade
    {0,534,67000}, //Remigton
    {0,567,62000}, //Savanna
    {0,535,20000}, //Slamvan
    {0,412,45500}, //Voodo
    {0,426,70000}, //Premier
    {0,421,96000}, // Washington
    {0,518,56000}, //Buccanee
    {0,542,35000}, //Clover
    {0,496,55500}, //Blistac
    {0,439,55000}, //Stallion
    {0,550,62000}, //Sunrise
    {0,540,70000}, //Vincent
    {0,404,61500}, //Peren
    {0,413,80000}, //Pony
    {0,458,82500}, //Solair
    {0,479,92500}, //Regina
    {0,440,99500}, //Rumpo
    {0,423,100000}, //Eiswagen (Mrwhoop)
    {0,483,106000}, //Camper
    {0,500,102500}, //Mesa
    {0,508,85000}, //Journey
    {0,554,85000}, //Yosemite
    {0,561,60000}, //Startum
    {0,489,102000}, //Rancher
    {0,543,115000}, //Sadler
    {0,442,120000}, //Leichenwagen
    {0,527,60000}, //Cadrona
    {0,531,60000}, //Farmtraktor
    // An Oamt Base
    {0,533,170000}, //Feltzer
    {0,587,450000}, //Euros
    {0,434,300000}, //Hotknife
    {0,495,600000}, //Sandking
    {0,482,550000}, //Burrito
    {0,489,550000}, //Rancher
    {0,568,350000}, //Bandito
    {0,579,190000}, //Huntley
    {0,507,196999}, //Elegant
    {0,419,120000}, //Esperant
    {0,526,194000}, //Fortune
    {0,602,109995}, //Alpha
    {0,400,150000}, //Landstalker
    {0,545,100000}, //Hustler
    {0,405,120000}, //Sentinel
    {0,445,125000}, //Admiral
    {0,475,125000}, //Sabre
    {0,409,1200000}, //Stretch
    {0,562,225000}, //Elegy
    {0,560,250000}, //Sultan
    {0,429,440000}, //Banshee
    {0,402,258000}, //Buffalo
    {0,541,280000}, //Bullet
    {0,415,248000}, //Cheetah
    {0,589,176000}, //Club
    {0,411,200000}, //Infernus
    {0,559,145000}, //Jester
    {0,603,155000}, //Phönix
    {0,506,270000}, //Supergt
    {0,451,425000}, //Turismo
    {0,470,525000}, //Patriot
    {0,558,180000}, //Uranus
    {0,480,140000}, //Comet
    {0,477,295000}, //Zr350
    {0,565,120000}, //Flash
    //4 = Flugzeuge
    {4,487,6000000}, //Maverick
    {4,469,3000000}, //Spearrow
    {4,417,4500000}, //Leviathan
    {4,511,2000000}, //Beagle
    {4,593,1500000}, //Dodo
    {4,513,1500000}, //StuntFlugzeug
    {4,519,12000000}, //Shamal
    //5 = Boote
    {5,446,5000000}, //Squallo
    {5,452,4000000}, //Speeder
    {5,453,3500000}, //Reefer
    {5,454,4500000}, //Tropic
    {5,473,1250000}, //Dinghy
    {5,493,4600000}, //Jetmax
    {5,460,4500000} //Skimmer
    };


    new Float:DtcParkPlatz[AUTOHAUSER][MAXPARKPLATZE][4] = {
    {//2Räder LS
    {2471.7231, -1558.3952, 23.5809, 0.0},
    {2474.7231, -1558.3952, 23.5751, 0.0},
    {2477.7231, -1558.3952, 23.5771, 0.0},
    {2480.7231, -1558.3952, 23.5921, 0.0}
    },
    {//bug
    {-5000.0, -50000.0, -50000.0, 5000000.500000},
    {-5000.0, -50000.0, -50000.0, 500000.0},
    {-5000.0, -50000.0, -50000.0, 500000.0},
    {-5000.0, -50000.0, -50000.0, 500000.0}
    },
    {//LS CarSeller
    {2148.0617, -1138.3233, 25.1975, 270.0},
    {2148.5222, -1143.1345, 24.6887, 270.0},
    {2147.8491, -1148.3714, 24.1134, 270.0},
    {2147.5104, -1152.7818, 23.6500, 270.0}
    },
    {//LS Studio
    {743.0629, -1334.0764, 13.2483, 180.0},
    {748.0629, -1334.0764, 13.2708, 180.0},
    {753.0629, -1334.0764, 13.2483, 180.0},
    {758.0629, -1334.0764, 13.2708, 180.0}
    },
    {//LS AIRPORT
    {1725.5981,-2414.4631,13.5547,91.2938},
    {1648.4031,-2413.2231,13.5547,91.2938},
    {1566.8810,-2416.3340,13.5547,89.3299},
    {1899.1111,-2374.5435,13.8934,270.3974}
    },
    {//BOOT
    {-142.2666,-1800.0825,5.6692,257.9329},
    {-134.0139,-1757.4247,5.6375,257.9329},
    {-142.5279,-1800.5029,5.6429,257.3058},
    {-146.4115,-1820.1492,5.5507,257.9677}
    }
    };
    new Float:DtcSonstiges[AUTOHAUSER][5][6] = {
    {//2Räder LS
    {2471.0097, -1542.7354, 24.1628, 0.0}, // Info Zeichen etc.
    {2475.3952, -1537.1600, 28.6523, 340.2388}, // LiveView Car
    {2472.8505, -1533.2855, 29.0964, 0.0}, // LiveView Cam
    {2468.4548, -1534.1237, 29.1007, 0.0}, // LiveView Player
    {2470.8825, -1544.0834, 24.0406, 178.5745} // LiveView Player Exit
    },
    {//Bug
    {5000000.0, 0.0, -40.0, 0.0},
    {5000000.0, 0.0, -40.0, 0.0},
    {5000000.0, 0.0, -40.0, 0.0},
    {5000000.0, 0.0, -40.0, 0.0},
    {5000000.0, 0.0, -40.0, 0.0}
    },
    {//LS CarSeller
    {2131.7124, -1151.0965, 24.0838, 0.0}, // Info Zeichen etc.
    {2131.7192, -1163.0882, 27.8755, 301.3163}, // LiveView Car
    {2133.0817, -1156.3632, 28.1484, 0.0}, // LiveView Cam
    {2133.0031, -1154.4589, 28.1484, 0.0}, // LiveView Player
    {2131.7634, -1148.4149, 24.3788, 359.2809} // LiveView Player Exit
    },
    {//LS Studio
    {750.7259, -1356.9744, 13.5000, 0.0}, // Info Zeichen etc.
    {740.5779, -1365.2796, 25.4192, 225.3830}, // LiveView Car
    {741.2583, -1370.9835, 25.6922, 0.0}, // LiveView Cam
    {741.7747, -1376.3156, 25.6922, 0.0}, // LiveView Player
    {753.6887, -1338.2799, 13.5320, 14.7941} // LiveView Player Exit
    },
    {//LS AIRPORT
    {1774.7336,-2433.5491,13.5547,252.3329}, // Info Zeichen etc.
    {1765.1451,-2286.7554,26.7960,313.5673}, // LiveView Car
    {1765.4340,-2271.0989,31.0900,181.3627}, // LiveView Cam
    {1765.4340,-2271.0989,31.0900,181.3627}, // LiveView Player
    {1778.3945,-2432.7996,13.5547,171.6871} // LiveView Player Exit
    },
    {//BOOT
    {-207.079453, -1778.610962, 1.718162}, // Info Zeichen etc.
    {-173.4363,-1748.6068,2.11650}, // LiveView Car
    {-175.1743,-1757.7203,7.5683}, // LiveView Cam
    {-175.1743,-1757.7203,0.5683}, // LiveView Player
    {-204.5906,-1776.0704,1.8197} // LiveView Player Exit
    }
    };


    enum dtc_PlayerCar
    {
    CarId,
    CarOwner[MAX_PLAYER_NAME],
    CarModel,
    Float:CarPos_x,
    Float:CarPos_y,
    Float:CarPos_z,
    Float:CarRotate,
    CarNitro,
    CarHyd,
    CarWheel,
    CarAusp,
    CarSideL,
    CarSideR,
    CarFB,
    CarRB,
    CarSpoiler,
    CarRoof,
    CarHood,
    CarVents,
    CarLamps,
    CarPJ,
    CarC1,
    CarC2,
    CarPreis,
    CarArrest,
    Plate[15],
    };


    new PlayerCar[MAX_PLAYERS][MaxVeh][dtc_PlayerCar];



    for(new x = 0; x < AUTOHAUSER;x++)
    {
    if(pickupid == Dtc_Info[x] && !Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]])
    {
    TogglePlayerControllable(playerid, 0);
    SetPlayerVirtualWorld(playerid,55+playerid);
    new string[246];
    dtc_AutohausCar[playerid] = 0;
    dtc_AutohausCat[playerid] = x;
    new c1 = random(120);
    new c2 = random(120);
    new car;
    new preis;
    for(new ah = 0; ah < sizeof(dtcKaufliste);ah++)
    {
    if(car == 0 && dtcKaufliste[ah][dtc_Autohaus] == x)
    {
    car = dtcKaufliste[ah][dtc_CarModel];
    preis = dtcKaufliste[ah][dtc_CarPreis];
    }
    }
    SetPlayerCameraPos(playerid, DtcSonstiges[x][2][0],DtcSonstiges[x][2][1],DtcSonstiges[x][2][2]);
    SetPlayerCameraLookAt(playerid, DtcSonstiges[x][1][0],DtcSonstiges[x][1][1],DtcSonstiges[x][1][2]);
    dtc_AutohausSCar[playerid] = CreateVehicle(car, DtcSonstiges[x][1][0],DtcSonstiges[x][1][1],DtcSonstiges[x][1][2],DtcSonstiges[x][1][3],c1,c2,-1);
    SSetPlayerPos(playerid, DtcSonstiges[x][3][0],DtcSonstiges[x][3][1],DtcSonstiges[x][3][2]);
    SetVehicleVirtualWorld(dtc_AutohausSCar[playerid],55+playerid);
    format(string,sizeof(string),"~r~---------- AUTOHAUS ----------~n~~g~Fahrzeug: ~w~%s~n~~g~Preis: ~w~%d$~n~~b~Auswaehlen:~n~~w~ <Num 4<~b~&~w~>Num 6> ~n~~b~Kaufen:~w~ Enter ~n~~b~Abbrechen:~w~ Tab",CarName[car-400],preis);
    if(!CarKauf[playerid])
    {
    CarKauf[playerid] = TextDrawCreate(200,310,string);
    TextDrawAlignment(CarKauf[playerid],1);
    TextDrawUseBox(CarKauf[playerid],1);
    TextDrawBoxColor(CarKauf[playerid],0x000000FF);
    TextDrawSetOutline(CarKauf[playerid],1);
    TextDrawBackgroundColor(CarKauf[playerid],Schwarz);
    TextDrawSetOutline(CarKauf[playerid],1);
    TextDrawFont(CarKauf[playerid], 2);
    TextDrawTextSize(CarKauf[playerid],450,410);
    TextDrawShowForPlayer(playerid,CarKauf[playerid]);
    }
    else
    {
    TextDrawHideForPlayer(playerid,CarKauf[playerid]);
    TextDrawSetString(CarKauf[playerid],string);
    TextDrawShowForPlayer(playerid,CarKauf[playerid]);
    }
    }
    else if(pickupid == Dtc_Info[x] && Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]])
    {
    new mv = MaxVeh;
    if(mv > 1)
    {
    SendClientMessage(playerid, Grau, " Du besitzt schon ein Fahrzeug mit deinem Ausgewählten Schlüssel !");
    SendClientMessage(playerid, Grau, " Verkaufe es mit /verkauto oder wechsel den Schlüssel mit /carkey !");
    }
    else
    {
    SendClientMessage(playerid, Grau, " Du besitzt schon ein Fahrzeug! Verkaufe es mit /verkauto");
    }
    }
    }


    Hab nochmehr gefunden!
    Is das der richtige ?

    <X<X<X

    3 Mal editiert, zuletzt von Shortyyyy ()