Beiträge von Xaiunay

    hab meins mal aktuallisiert funzt aber noch nicht ich probier deins jetz aus kommt ins edit ;)
    if(strcmp(cmd, "/gangjail", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Verwendung: /gangjail [spielerid/teildesnamens]");
    return 1;
    }
    new playa;
    playa = ReturnUser(tmp);
    tmp = strtok(cmdtext, idx);
    // ========================== KDW ===============================================
    if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
    {
    if(GetDistanceBetweenPlayers(playerid,playa) > 7.0)
    {
    if(PlayerToPoint(3,playerid, -1779.3464,1306.7997,50.4453))
    {
    if(IsPlayerConnected(playa))
    {
    if(playa != INVALID_PLAYER_ID)
    {
    GetPlayerName(playa, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* Du hast %s in das Gangjail gesperrt.", giveplayer);
    SendClientMessage(playerid, COLOR_LIGHTRED, string);
    format(string, sizeof(string), "* Du wurdest von %s in das Renegade Gangjail gesperrt. Verhandele mit dem Täter oder verotte hier :P.", sendername);
    SendClientMessage(playa, COLOR_LIGHTRED, string);
    ResetPlayerWeapons(playa);
    PlayerInfo[playa][pGangJailed] = 2;
    SetPlayerInterior(playa, 0);
    TogglePlayerControllable(playa, 1);
    SetPlayerPos(playa, -1779.8328,1310.3181,50.4453);
    SendClientMessage(playa, COLOR_LIGHTBLUE, string);


    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du bist nicht am Gangjail.");
    }
    }
    }
    else
    {
    if(PlayerInfo[playerid][pMember] != 6 || PlayerInfo[playerid][pLeader] != 6)
    {
    SendClientMessage(playerid, COLOR_GREY, "Du bist kein Renegade!");
    }
    }
    // ========================== KDW ===============================================
    // ========================== YAKUZA ==============================================
    if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
    {
    if(GetDistanceBetweenPlayers(playerid,playa) > 7.0)
    {
    if(PlayerToPoint(3,playerid,2602.8765,-2172.0032,-0.22))
    {
    if(IsPlayerConnected(playa))
    {
    if(playa != INVALID_PLAYER_ID)
    {
    GetPlayerName(playa, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* Du hast %s in das Gangjail gesperrt.", giveplayer);
    SendClientMessage(playerid, COLOR_LIGHTRED, string);
    format(string, sizeof(string), "* Du wurdest von %s in das Yakuza Gangjail gesperrt. Verhandele mit dem Täter oder verotte hier :P.", sendername);
    SendClientMessage(playa, COLOR_LIGHTRED, string);
    ResetPlayerWeapons(playa);
    PlayerInfo[playa][pGangJailed] = 1;
    SetPlayerInterior(playa, 0);
    TogglePlayerControllable(playa, 1);
    SetPlayerPos(playa, 2607.6880,-2174.7336,-0.1526);
    SendClientMessage(playa, COLOR_LIGHTBLUE, string);

    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du bist nicht am Gangjail.");
    }
    }
    }
    else
    {
    if(PlayerInfo[playerid][pMember] != 11 || PlayerInfo[playerid][pLeader] != 11)
    {
    SendClientMessage(playerid, COLOR_GREY, "Du bist kein Yakuza!");
    }
    }
    // ========================== YAKUZA ==============================================
    }
    return 1;
    }


    E: hey danke deins funzt ;)
    dann hab ich nur noch das prob mit den pickups :D

    ja muiss ich ja auch ^^ ich schreib einfach mal den code:
    new yakugangjail;
    new kdwgangjail;
    enum pInfo
    {
    pGangJailed,
    };
    public OnPlayerConnect(playerid)
    {
    PlayerInfo[playerid][pGangJailed] = 0;
    }
    public SetPlayerSpawn(playerid)
    {
    if(PlayerInfo[playerid][pGangJailed] == 1)// Yakuza
    {
    SetPlayerInterior(playerid, 6);
    SetPlayerPos(playerid,2607.6880,-2174.7336,-0.1526);
    SendClientMessage(playerid, COLOR_LIGHTRED, "Du hast das verhandelte noch nicht getan. Zurück ins Gang Jail :P.");
    return 1;
    }


    if(PlayerInfo[playerid][pGangJailed] == 2)// Krieger des Westen
    {
    SetPlayerInterior(playerid, 6);
    SetPlayerPos(playerid,2607.6880,-2174.7336,-0.1526);
    SendClientMessage(playerid, COLOR_LIGHTRED, "Du hast das verhandelte noch nicht getan. Zurück ins Gang Jail :P.");
    return 1;
    }
    }


    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    if(pickupid == yakugangjail)
    {
    GameTextForPlayer(playerid,"~g~/gangjail [playerid] // /gangunjail [playerid]", 4000,4);
    }


    if(pickupid == kdwgangjail)
    {
    GameTextForPlayer(playerid,"~g~/gangjail [playerid] // /gangunjail [playerid]", 4000,4);
    }


    wenn ich dann in das KDW Gangjail gehe passiert nichts
    aber wenn ich in
    AddStaticPickup(1318, 23, 246.40, 87.35, 1003.64);


    das gehe dann steht da was beim kdwgangjail stehen sollte 8|


    btw gangjail funzt auch nichmehr seitdem ich da mit pickup probiert hab:
    if(strcmp(cmd, "/gangjail", true) == 0)
    {
    @@if(IsPlayerConnected(playerid))
    @@{
    @@tmp = strtok(cmdtext, idx);
    @@if(!strlen(tmp))
    @@{
    @@SendClientMessage(playerid, COLOR_GRAD2, "Verwendung: /gangjail [spielerid/teildesnamens]");
    @@return 1;
    @@}
    @@new playa;
    @@playa = ReturnUser(tmp);
    @@tmp = strtok(cmdtext, idx);
    // ========================== KDW ===============================================
    if(PlayerToPoint(3,playerid, -1779.3464,1306.7997,50.4453))
    {
    if(GetDistanceBetweenPlayers(playerid,playa) > 7.0)
    {
    if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
    {
    if(IsPlayerConnected(playa))
    {
    if(playa != INVALID_PLAYER_ID)
    {
    GetPlayerName(playa, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* Du hast %s in das Gangjail gesperrt.", giveplayer);
    SendClientMessage(playerid, COLOR_LIGHTRED, string);
    format(string, sizeof(string), "* Du wurdest von %s in das Renegade Gangjail gesperrt. Verhandele mit dem Täter oder verotte hier :P.", sendername);
    SendClientMessage(playa, COLOR_LIGHTRED, string);
    ResetPlayerWeapons(playa);
    PlayerInfo[playa][pGangJailed] = 2;
    SetPlayerInterior(playa, 0);
    TogglePlayerControllable(playa, 1);
    SetPlayerPos(playa, -1779.8328,1310.3181,50.4453);
    SendClientMessage(playa, COLOR_LIGHTBLUE, string);


    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du bist kein Renegade.");
    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "Du bist nicht am Gangjail!")
    }
    // ========================== KDW ===============================================
    // ========================== YAKUZA ==============================================
    if(PlayerToPoint(3,playerid,2602.8765,-2172.0032,-0.22))
    {
    if(GetDistanceBetweenPlayers(playerid,playa) > 7.0)
    {
    if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
    {
    if(IsPlayerConnected(playa))
    {
    if(playa != INVALID_PLAYER_ID)
    {
    GetPlayerName(playa, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* Du hast %s in das Gangjail gesperrt.", giveplayer);
    SendClientMessage(playerid, COLOR_LIGHTRED, string);
    format(string, sizeof(string), "* Du wurdest von %s in das Yakuza Gangjail gesperrt. Verhandele mit dem Täter oder verotte hier :P.", sendername);
    SendClientMessage(playa, COLOR_LIGHTRED, string);
    ResetPlayerWeapons(playa);
    PlayerInfo[playa][pGangJailed] = 1;
    SetPlayerInterior(playa, 0);
    TogglePlayerControllable(playa, 1);
    SetPlayerPos(playa, 2607.6880,-2174.7336,-0.1526);
    SendClientMessage(playa, COLOR_LIGHTBLUE, string);

    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du bist kein Yakuza.");
    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "Du bist nicht am Gangjail!")
    }
    // ========================== YAKUZA ==============================================
    }
    return 1;
    }
    bei den @@'s muss der fehler liegen da er nich sagt das ich nich am gangjail bin

    Dann starte den Editor in einem Blanko Script, weil anscheinend dein Login buggy ist...

    wie meinst?
    login script is des:
    public OnPlayerConnect(playerid)
    {
    new Name[MAX_PLAYER_NAME+2], message[256];
    GetPlayerName(playerid, Name, sizeof(Name));
    format(message, sizeof(message), "%s hat den Server betreten.", Name);
    SendClientMessageToAll(COLOR_SPEC, message);


    if(Security != 0)
    {
    //SendClientMessage(playerid, COLOR_YELLOW, "Host has broken one of the Agreement rules, action has been taken.");
    //Kick(playerid);
    return 1;
    }
    gActivePlayers[playerid]++;
    numplayers++;
    new plname[MAX_PLAYER_NAME];
    new string[MAX_PLAYER_NAME];
    // ganzes piwas krams
    GetPlayerName(playerid, plname, sizeof(plname));
    format(string, sizeof(string), "%s.ini", plname);
    if(fexist(string))
    {
    gPlayerAccount[playerid] = 1;
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Bitte logge dich nun in deinen Account ein!","Login","Abbrechen");
    return 1;
    }
    else
    {
    gPlayerAccount[playerid] = 0;
    return 1;
    }
    }
    public OnPlayerRegister(playerid, password[])
    {
    if(IsPlayerConnected(playerid))
    {
    new string3[32];
    new playername3[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername3, sizeof(playername3));
    format(string3, sizeof(string3), "%s.ini", playername3);
    new File: hFile = fopen(string3, io_write);
    if (hFile)
    {
    strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
    new var[32];
    //formate
    if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0))
    {
    PlayerInfo[playerid][pPos_x] = 1684.9;
    PlayerInfo[playerid][pPos_y] = -2244.5;
    PlayerInfo[playerid][pPos_z] = 13.5;
    }
    if(Spectate[playerid] != 255)
    {
    PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx];
    PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy];
    PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz];
    PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
    PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
    }
    format(var, 32, "Pos_x=%.1f\n",PlayerInfo[playerid][pPos_x]);fwrite(hFile, var);
    format(var, 32, "Pos_y=%.1f\n",PlayerInfo[playerid][pPos_y]);fwrite(hFile, var);
    format(var, 32, "Pos_z=%.1f\n",PlayerInfo[playerid][pPos_z]);fwrite(hFile, var);
    format(var, 32, "CarLic=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var);
    format(var, 32, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
    format(var, 32, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
    format(var, 32, "FishLic=%d\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var);
    format(var, 32, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);
    format(var, 32, "Gun1=%d\n",PlayerInfo[playerid][pGun1]);fwrite(hFile, var);
    format(var, 32, "Gun2=%d\n",PlayerInfo[playerid][pGun2]);fwrite(hFile, var);
    format(var, 32, "Gun3=%d\n",PlayerInfo[playerid][pGun3]);fwrite(hFile, var);
    format(var, 32, "Gun4=%d\n",PlayerInfo[playerid][pGun4]);fwrite(hFile, var);
    format(var, 32, "Ammo1=%d\n",PlayerInfo[playerid][pAmmo1]);fwrite(hFile, var);
    format(var, 32, "Ammo2=%d\n",PlayerInfo[playerid][pAmmo2]);fwrite(hFile, var);
    format(var, 32, "Ammo3=%d\n",PlayerInfo[playerid][pAmmo3]);fwrite(hFile, var);
    format(var, 32, "Ammo4=%d\n",PlayerInfo[playerid][pAmmo4]);fwrite(hFile, var);
    format(var, 32, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var);
    format(var, 32, "PayDay=%d\n",PlayerInfo[playerid][pPayDay]);fwrite(hFile, var);
    format(var, 32, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var);
    format(var, 32, "CDPlayer=%d\n",PlayerInfo[playerid][pCDPlayer]);fwrite(hFile, var);
    format(var, 32, "Wins=%d\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var);
    format(var, 32, "Loses=%d\n",PlayerInfo[playerid][pLoses]);fwrite(hFile, var);
    format(var, 32, "AlcoholPerk=%d\n",PlayerInfo[playerid][pAlcoholPerk]);fwrite(hFile, var);
    format(var, 32, "DrugPerk=%d\n",PlayerInfo[playerid][pDrugPerk]);fwrite(hFile, var);
    format(var, 32, "MiserPerk=%d\n",PlayerInfo[playerid][pMiserPerk]);fwrite(hFile, var);
    format(var, 32, "PainPerk=%d\n",PlayerInfo[playerid][pPainPerk]);fwrite(hFile, var);
    format(var, 32, "TraderPerk=%d\n",PlayerInfo[playerid][pTraderPerk]);fwrite(hFile, var);
    format(var, 32, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var);
    format(var, 32, "Mission=%d\n",PlayerInfo[playerid][pMissionNr]);fwrite(hFile, var);
    format(var, 32, "Warnings=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var);
    format(var, 32, "Adjustable=%d\n",PlayerInfo[playerid][pAdjustable]);fwrite(hFile, var);
    format(var, 32, "Fuel=%d\n",PlayerInfo[playerid][pFuel]);fwrite(hFile, var);
    format(var, 32, "Married=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var);
    format(var, 32, "MarriedTo=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var);
    fclose(hFile);
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Bitte logge dich nun in deinen Account ein!","Login","Abbrechen");
    }
    }
    return 1;
    }
    if(dialogid == DIALOG_LOGIN)
    {
    if(response && strlen(inputtext) > 0)
    {
    OnPlayerLogin(playerid,inputtext);
    }
    }

    ja aber das hilft dann ja auch nich dann funzt der fightstyle dialog auch nich wie jetz^^
    hier mal die defines:
    #define DIALOG_LOGIN 0
    #define DIALOG_LOGIN_FAIL 1
    #define DIALOG_REG 2
    #define DIALOG_REG2 3
    #define DIALOG_REGSTEP_1 4
    #define DIALOG_REGSTEP_2 5
    #define DIALOG_REGSTEP_3 6
    #define DIALOG_TUNE 7
    #define DIALOG_TUNE_FARBEN 8
    #define DIALOG_TUNE_FELGEN 9
    #define DIALOG_SPOILER 10
    #define DIALOG_SIDES 11
    #define DIALOG_AUSPUFF 12
    #define DIALOG_SULTAN 13
    #define fightdialog 14
    #define xnavimenu 15

    hiho :/
    problem ist:
    kennt ja den textdraw editor? ja wenn ich /text mache kommt das mein passwort falsch ist \o/
    die zeilen wo des is mit dem input:


    if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0 )
    {
    new key[ 256 ] , val[ 256 ];
    new Data[ 256 ];
    while ( fread( UserFile , Data , sizeof( Data ) ) )
    {
    key = ini_GetKey( Data );
    // hier die ganzen ifs gedöns hab ich rausgenommen weil zuviele zeichen sonst
    }//end while
    fclose(UserFile);//close the file after everything has been read in the while
    }
    else
    {
    ShowPlayerDialog(playerid,DIALOG_LOGIN_FAIL,DIALOG_STYLE_INPUT,"Login","Dein Passwort ist nicht korrekt! Bitte gib nun dein richtiges Passwort ein:","Login","Abbrechen");
    fclose(UserFile);
    gPlayerLogTries[playerid] += 1;
    if(gPlayerLogTries[playerid] == 5) { Ban(playerid); }
    return 1;
    }


    oder wenn ich /fight mache ( das is wo man fight style auswählen muss ) kommt das gleiche :<


    response:
    if(dialogid == DIALOG_LOGIN)
    {
    if(response && strlen(inputtext) > 0)
    {
    OnPlayerLogin(playerid,inputtext);
    }
    }

    if(dialogid == DIALOG_LOGIN_FAIL)
    {
    if(response && strlen(inputtext) > 0)
    {
    OnPlayerLogin(playerid,inputtext);
    }
    }


    hoffe ihr versteht was ich meine
    also wenn ich
    /text mache
    kommt ja new project save project usw dann klick ich auf new project
    dann kommt passwort ist falsch dann geb ich passwort wida ein dann respawne ich


    oder bei /fight
    dann kommt halt diese liste :


    if(dialogid == fightdialog)
    {
    if(response == 1)
    {
    if(listitem == 0)
    {
    SetPlayerFightingStyle(playerid, FIGHT_STYLE_NORMAL);
    SendClientMessage(playerid,COLOR_ORANGE,"Fightstyle: Du verlernst deine Kampfsportart.");
    }
    if(listitem == 1)
    {
    SetPlayerFightingStyle(playerid, FIGHT_STYLE_BOXING); //Kampfstil
    SendClientMessage(playerid,COLOR_ORANGE,"Fightstyle: Du erlernst die Kampfkunst Boxen."); //Test das er es erlernt hat
    }
    if(listitem == 2)
    {
    SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU);
    SendClientMessage(playerid,COLOR_ORANGE,"Fightstyle: Du erlernst die Kampfkunst Kung-Fu.");
    }
    if(listitem == 3)
    {
    SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD);
    SendClientMessage(playerid,COLOR_ORANGE,"Fightstyle: Du erlernst die Kampfkunst Kneehead.");
    }
    if(listitem == 4)
    {
    SetPlayerFightingStyle(playerid, FIGHT_STYLE_GRABKICK);
    SendClientMessage(playerid,COLOR_ORANGE,"Fightstyle: Du erlernst die Kampfkunst Grabkick.");
    }
    if(listitem == 5)
    {
    SetPlayerFightingStyle(playerid, FIGHT_STYLE_ELBOW);
    SendClientMessage(playerid,COLOR_ORANGE,"Fightstyle: Du erlernst die Kampfkunst Elbow.");
    }
    }
    }


    wenn ich da iwo drauf klicke kommt passwort ist nicht korrekt bla und dann respawne ich und hab aber noch den alten fightstyle :/


    hoffe auf gute hilfe verzweifle grad :/


    benutze Godfather

    hiho ;)
    €dit:
    mir is grad aufgefallen das die pickups wohl funken aber wenn ich an einem object sagen wir mal ich spawn eins an 10.0,10.0,10.0 unda das soll nen text machen dann renn ich dadurch passiert nix hab davor natürelich test = gemacht so dann renn ich mal durch alle andern pickups die auf der map sind und irgendeins von denen ists dann \o/

    #include <a_samp>


    main()
    {
    print("\n----------------------------------");
    print(" Carwash by samed");
    print("----------------------------------\n");
    }
    new CarwashPickup;
    new Carwashwasser;
    public OnGameModeInit()
    {
    CarwashPickup = CreatePickup(1239,2,1911.2797,-1776.2843,13.3828,-1);
    Carwashwasser = CreateObject(9833, 1910.8001708984, -1776.3387451172, 2.9853558540344, 0, 0, 0);
    return 1;
    }
    public OnGameModeExit()
    {
    return 1;
    }
    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp("/carwash", cmdtext, true, 10) == 0)
    {
    MoveObject(Carwashwasser,1910.8001708984, -1776.3387451172, 7.9853558540344, 3); // Hier war der Fehler :D
    GameTextForPlayer(playerid,"Bitte warten!",3000,0);

    return 1;
    }
    return 0;
    }
    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    if(playerid == CarwashPickup) IsPlayerInAnyVehicle(playerid);
    GameTextForPlayer(playerid,"Tippe /carwash!",3000,0);
    return 1;
    }


    würde sagen das das so muss ;) weil MoveObject hast nur 5 parameter:
    Object
    X
    Y
    Z
    Speed ;)


    und btw das move object wenn du das machst das wasser bewegt sich 0 pixel du musst mit X Y Z schon rumspieln damits geht

    so hab nochmal überarbeitet warns usw weg waren btw bugs drin fixed:
    new auto = GetPlayerVehicleID(playerid);
    if(dialogid == DIALOG_TUNE)
    {
    if(response == 1)
    {
    if(listitem == 0) //Felgen
    {
    ShowPlayerDialog(playerid, DIALOG_TUNE_FELGEN, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 1) //Farben
    {
    ShowPlayerDialog(playerid, DIALOG_TUNE_FARBEN, DIALOG_STYLE_LIST, "Farb Menu", "Weiß\nSchwarz\nGrün\nBlau\nGelb\nRot", "Wählen", "Zurück");
    }
    if(listitem == 2) //Hidraulics
    {
    AddVehicleComponent(auto, 1087);
    // ShowPlayerDialog(playerid, DIALOG_TUNE, DIALOG_STYLE_LIST, "Tuning Menu", "Felgen\nFarben\nHidraulics\nNitro\nStereo\nRepair", "Wählen", "Zurück");
    }
    if(listitem == 3) //Nitro
    {
    AddVehicleComponent(auto, 1010);
    // ShowPlayerDialog(playerid, DIALOG_TUNE, DIALOG_STYLE_LIST, "Tuning Menu", "Felgen\nFarben\nHidraulics\nNitro\nStereo\nRepair", "Wählen", "Zurück");
    }
    if(listitem == 4) //Stereo
    {
    AddVehicleComponent(auto, 1086);
    // ShowPlayerDialog(playerid, DIALOG_TUNE, DIALOG_STYLE_LIST, "Tuning Menu", "Felgen\nFarben\nHidraulics\nNitro\nStereo\nRepair", "Wählen", "Zurück");
    }
    if(listitem == 5) //Repair
    {
    RepairVehicle(auto);
    // ShowPlayerDialog(playerid, DIALOG_TUNE, DIALOG_STYLE_LIST, "Tuning Menu", "Felgen\nFarben\nHidraulics\nNitro\nStereo\nRepair", "Wählen", "Zurück");
    }
    }
    if(response == 0) return TogglePlayerControllable(playerid, true);
    }
    if(dialogid == DIALOG_TUNE_FELGEN)
    {
    if(response == 1)
    {
    if(listitem == 0)
    {
    AddVehicleComponent(auto, 1080); //Switch
    // ShowPlayerDialog(playerid, DIALOG_TUNE_FELGEN, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 1)
    {
    AddVehicleComponent(auto, 1074); //Mega
    // ShowPlayerDialog(playerid, DIALOG_TUNE_FELGEN, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wäjlen", "Zurück");
    }
    if(listitem == 2)
    {
    AddVehicleComponent(auto, 1079); //Cutter
    // ShowPlayerDialog(playerid, DIALOG_TUNE_FELGEN, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 3)
    {
    AddVehicleComponent(auto, 1025); //Offroad
    // ShowPlayerDialog(playerid, DIALOG_TUNE_FELGEN, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 4)
    {
    AddVehicleComponent(auto, 1073); //Shadow
    // ShowPlayerDialog(playerid, DIALOG_TUNE_FELGEN, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 5)
    {
    AddVehicleComponent(auto, 1075); //Rimshine
    // ShowPlayerDialog(playerid, DIALOG_TUNE_FELGEN, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 6)
    {
    AddVehicleComponent(auto, 1076); //Wires
    // ShowPlayerDialog(playerid, DIALOG_TUNE_FELGEN, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 7)
    {
    AddVehicleComponent(auto, 1077); //Classic
    // ShowPlayerDialog(playerid, DIALOG_TUNE_FELGEN, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 8)
    {
    AddVehicleComponent(auto, 1078); //Twist
    // ShowPlayerDialog(playerid, DIALOG_TUNE_FELGEN, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 9)
    {
    AddVehicleComponent(auto, 1081); //Grove
    // ShowPlayerDialog(playerid, DIALOG_TUNE_FELGEN, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 10)
    {
    AddVehicleComponent(auto, 1082); //Import
    // ShowPlayerDialog(playerid, DIALOG_TUNE_FELGEN, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 11)
    {
    AddVehicleComponent(auto, 1083); //Dollar
    // ShowPlayerDialog(playerid, DIALOG_TUNE_FELGEN, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 12)
    {
    AddVehicleComponent(auto, 1084); //Trance
    // ShowPlayerDialog(playerid, DIALOG_TUNE_FELGEN, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 13)
    {
    AddVehicleComponent(auto, 1085); //Atomic
    // ShowPlayerDialog(playerid, DIALOG_TUNE_FELGEN, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 14)
    {
    AddVehicleComponent(auto, 1096); //Ahab
    // ShowPlayerDialog(playerid, DIALOG_TUNE_FELGEN, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 15)
    {
    AddVehicleComponent(auto, 1097); //Virtual
    // ShowPlayerDialog(playerid, DIALOG_TUNE_FELGEN, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 16)
    {
    AddVehicleComponent(auto, 1098); //Access
    // ShowPlayerDialog(playerid, DIALOG_TUNE_FELGEN, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    }
    if(response == 0) return ShowPlayerDialog(playerid, DIALOG_TUNE, DIALOG_STYLE_LIST, "Tuning Menu", "Felgen\nFarben\nHidraulics\nNitro\nStereo\nRepair", "Wählen", "Zurück");
    }


    if(strcmp("/tune", cmdtext, true) == 0)
    {
    if (PlayerInfo[playerid][pAdmin] >= 3)
    {
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "Du bist in keinem Auto!!");
    ShowPlayerDialog(playerid, DIALOG_TUNE, DIALOG_STYLE_LIST, "Pimp My Car", "Felgen\nFarbe\nHidraulics\nNitro\nStereo\nRepair", "Wählen", "Schließen");
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED, "Du hast keine Rechte dafür.");
    }
    }

    bei mir funzts wunderbar:
    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    new auto = GetPlayerVehicleID(playerid);
    if(dialogid == 1)
    {
    if(response == 1)
    {
    if(listitem == 0) //Felgen
    {
    ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 1) //Farben
    {
    ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Farb Menu", "Weiß\nSchwarz\nGrün\nBlau\nGelb\nRot", "Wählen", "Zurück");
    }
    if(listitem == 2) //Hidraulics
    {
    AddVehicleComponent(auto, 1087);
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Tuning Menu", "Felgen\nFarben\nHidraulics\nNitro\nStereo\nRepair", "Wählen", "Zurück");
    }
    if(listitem == 3) //Nitro
    {
    AddVehicleComponent(auto, 1010);
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Tuning Menu", "Felgen\nFarben\nHidraulics\nNitro\nStereo\nRepair", "Wählen", "Zurück");
    }
    if(listitem == 4) //Stereo
    {
    AddVehicleComponent(auto, 1086);
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Tuning Menu", "Felgen\nFarben\nHidraulics\nNitro\nStereo\nRepair", "Wählen", "Zurück");
    }
    if(listitem == 5) //Repair
    {
    RepairVehicle(auto);
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Tuning Menu", "Felgen\nFarben\nHidraulics\nNitro\nStereo\nRepair", "Wählen", "Zurück");
    }
    }
    if(response == 0) return TogglePlayerControllable(playerid, true);
    }
    if(dialogid == 2)
    {
    if(response == 1)
    {
    if(listitem == 0)
    {
    AddVehicleComponent(auto, 1080); //Switch
    ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 1)
    {
    AddVehicleComponent(auto, 1074); //Mega
    ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wäjlen", "Zurück");
    }
    if(listitem == 2)
    {
    AddVehicleComponent(auto, 1079); //Cutter
    ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 3)
    {
    AddVehicleComponent(auto, 1025); //Offroad
    ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 4)
    {
    AddVehicleComponent(auto, 1073); //Shadow
    ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 5)
    {
    AddVehicleComponent(auto, 1075); //Rimshine
    ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 6)
    {
    AddVehicleComponent(auto, 1076); //Wires
    ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 7)
    {
    AddVehicleComponent(auto, 1077); //Classic
    ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 8)
    {
    AddVehicleComponent(auto, 1078); //Twist
    ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 9)
    {
    AddVehicleComponent(auto, 1081); //Grove
    ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 10)
    {
    AddVehicleComponent(auto, 1082); //Import
    ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 11)
    {
    AddVehicleComponent(auto, 1083); //Dollar
    ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 12)
    {
    AddVehicleComponent(auto, 1084); //Trance
    ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 13)
    {
    AddVehicleComponent(auto, 1085); //Atomic
    ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 14)
    {
    AddVehicleComponent(auto, 1096); //Ahab
    ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 15)
    {
    AddVehicleComponent(auto, 1097); //Virtual
    ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    if(listitem == 16)
    {
    AddVehicleComponent(auto, 1098); //Access
    ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
    }
    }
    if(response == 0) return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Tuning Menu", "Felgen\nFarben\nHidraulics\nNitro\nStereo\nRepair", "Wählen", "Zurück");
    }
    if(dialogid == 3)
    {
    if(response == 1)
    {
    if(listitem == 0)
    {
    ChangeVehicleColor(auto, 1, 1);
    ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Farb Menu", "Weiß\nSchwarz\nGrün\nBlau\nGelb\nRot", "Wählen", "Zurück");
    }
    if(listitem == 1)
    {
    ChangeVehicleColor(auto, 0, 0);
    ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Farb Menu", "Weiß\nSchwarz\nGrün\nBlau\nGelb\nRot", "Wählen", "Zurück");
    }
    if(listitem == 2)
    {
    ChangeVehicleColor(auto, 252, 252);
    ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Farb Menu", "Weiß\nSchwarz\nGrün\nBlau\nGelb\nRot", "Wählen", "Zurück");
    }
    if(listitem == 3)
    {
    ChangeVehicleColor(auto, 158, 158);
    ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Farb Menu", "Weiß\nSchwarz\nGrün\nBlau\nGelb\nRot", "Wählen", "Zurück");
    }
    if(listitem == 4)
    {
    ChangeVehicleColor(auto, 6, 6);
    ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Farb Menu", "Weiß\nSchwarz\nGrün\nBlau\nGelb\nRot", "Wählen", "Zurück");
    }
    if(listitem == 5)
    {
    ChangeVehicleColor(auto, 170, 170);
    ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Farb menu", "Weiß\nSchwarz\nGrün\nBlau\nGelb\nRot", "Wählen", "Zurück");
    }
    }
    if(response == 0) return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Tuning Menu", "Felgen\nFarben\nHidraulics\nNitro\nStereo\nRepair", "Wählen", "Zurück");
    }
    }
    if(strcmp("/tune", cmdtext, true) == 0)
    {
    if (PlayerInfo[playerid][AdminLevel] >= 3)
    {
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, Rot, "Du bist in keinem Auto!!");
    {
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Pimp My Car", "Felgen\nFarbe\nHidraulics\nNitro\nStereo\nRepair", "Wählen", "Schließen");
    TogglePlayerControllable(playerid, false);
    }
    else
    {
    SendClientMessage(playerid,Rot, "Du hast keine Rechte dafür.");
    }
    return 1;
    }
    }

    das portet mich immer iwo nach lv 8|
    mit verschiedenen coordinaten getestet /gotols coords pd coords usw komme immer in lv raus

    errort nicht aber funzt nich :/ habt ihr vll noch nen anderes?