Neon Fehler

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, habe einen kleinen Fehler bei meinem "Neon System".
    Wenn ich jetzt /neon Eingebe, erscheint ein Dialog, wenn ich dann eine Farbe auswähle, z.B Blau, kommt aber nur an der Rechten Seite eine Neon Röhre. Normal müssen bei nem Auto an beiden welche Kommen.


    Hier mein Neon Script mal:



    if(dialogid == neonmenu) //Neon Röhren
    {
    if(response)
    {
    if(listitem == 0) //Blau
    {
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon", CreateObject(18648,0,0,0,0,0,0,283));
    SetPVarInt(playerid, "neon1", CreateObject(18648,0,0,0,0,0,0,283));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), -0.8,0,-0.70,0,0,0);
    }
    if(listitem == 1) //Grün
    {
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon", CreateObject(18649,0,0,0,0,0,0,283));
    SetPVarInt(playerid, "neon1", CreateObject(18649,0,0,0,0,0,0,283));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), -0.8,0,-0.70,0,0,0);
    }
    if(listitem == 2) //Rot
    {
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon", CreateObject(18647,0,0,0,0,0,0,283));
    SetPVarInt(playerid, "neon1", CreateObject(18647,0,0,0,0,0,0,283));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), -0.8,0,-0.70,0,0,0);
    }
    if(listitem == 3) //Weiß
    {
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon", CreateObject(18652,0,0,0,0,0,0,283));
    SetPVarInt(playerid, "neon1", CreateObject(18652,0,0,0,0,0,0,283));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), -0.8,0,-0.70,0,0,0);
    }
    if(listitem == 4) //Gelb
    {
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon", CreateObject(18650,0,0,0,0,0,0,283));
    SetPVarInt(playerid, "neon1", CreateObject(18650,0,0,0,0,0,0,283));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), -0.8,0,-0.70,0,0,0);
    }
    if(listitem == 5) //Pink
    {
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon", CreateObject(18651,0,0,0,0,0,0,283));
    SetPVarInt(playerid, "neon1", CreateObject(18651,0,0,0,0,0,0,283));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), -0.8,0,-0.70,0,0,0);
    }
    if(listitem == 6) // Remove
    DestroyObject(GetPVarInt(playerid, "neon"));
    DestroyObject(GetPVarInt(playerid, "neon1"));
    }
    }


    Das ist unter OnDialogReponse, und das hier unter OnPlayerCommandText



    if(strcmp("/neon", cmdtext, true, 10) == 0)
    {
    ShowPlayerDialog(playerid, neonmenu, DIALOG_STYLE_LIST, "Neonlichter Menu", "Blau\nGrün\nRot\nWeiß\nGelb\nPink\nNeon Löschen", "Auswählen", "Abbrechen");
    SendClientMessage(playerid,COLOR_WHITE,"Bitte nur einen Neon ranmachen, da es sonst Buggen könnte!");
    return 1;
    }



    Pls help. ._.


    //Edit SetPVarInt war da i.wie drin
    //Edit2 Vergessen //Edit zu schreiben.

  • oben new neon[MAX_PLAYERS]; // eine Variable für jeden Spieler
    new neon1[MAX_PLAYERS]; // ebenfalls
    dann bei DialogResponse
    neon[playerid] = CreateObject(18648,0,0,0,0,0,0,283));
    ... und so weiter, ersetze das ganze GetPVarInt einfach durch neon oder neon1


    /edit: code


    Einmal editiert, zuletzt von !ULLLIIK ()

  • new bool:Status[MAX_PLAYERS];
    jetzt einfach das Boolean setzten (wahr oder falsch Wert), z.B wie es hier der Fall ist
    Status[playerid] = true;


    //edit: du darfst nicht neon = CreateObject.... machen, sondern neon[playerid] = CreateO..

  • Jetzt erstellt er garkein Object mehr.



    if(dialogid == neonmenu) //Neon Röhren
    {
    if(response)
    {
    if(listitem == 0) //Blau
    {
    SetPVarInt(playerid, "Status", 1);
    neonblau[playerid] = CreateObject(18648,0,0,0,0,0,0,283);
    neonblau1[playerid] = CreateObject(18648,0,0,0,0,0,0,283);
    AttachObjectToVehicle(GetPVarInt(playerid, "neonblau"), GetPlayerVehicleID(playerid), 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neonblau1"), GetPlayerVehicleID(playerid), -0.8,0,-0.70,0,0,0);
    }
    if(listitem == 1) //Grün
    {
    Status[playerid] = true;
    neongrun[playerid] = CreateObject(18649,0,0,0,0,0,0,283);
    neongrun1[playerid] =CreateObject(18649,0,0,0,0,0,0,283);
    AttachObjectToVehicle(GetPVarInt(playerid, "neongrun"), GetPlayerVehicleID(playerid), 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neongrun1"), GetPlayerVehicleID(playerid), -0.8,0,-0.70,0,0,0);
    }
    if(listitem == 2) //Rot
    {
    Status[playerid] = true;
    neonrot[playerid] = CreateObject(18647,0,0,0,0,0,0,283);
    neonrot1[playerid] = CreateObject(18647,0,0,0,0,0,0,283);
    AttachObjectToVehicle(GetPVarInt(playerid, "neonrot"), GetPlayerVehicleID(playerid), 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neonrot1"), GetPlayerVehicleID(playerid), -0.8,0,-0.70,0,0,0);
    }
    if(listitem == 3) //Weiß
    {
    Status[playerid] = true;
    neonweis[playerid] = CreateObject(18652,0,0,0,0,0,0,283);
    neonweis1[playerid] = CreateObject(18652,0,0,0,0,0,0,283);
    AttachObjectToVehicle(GetPVarInt(playerid, "neonweis"), GetPlayerVehicleID(playerid), 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neonweis1"), GetPlayerVehicleID(playerid), -0.8,0,-0.70,0,0,0);
    }
    if(listitem == 4) //Gelb
    {
    Status[playerid] = true;
    neongelb[playerid] = CreateObject(18650,0,0,0,0,0,0,283);
    neongelb1[playerid] = CreateObject(18650,0,0,0,0,0,0,283);
    AttachObjectToVehicle(GetPVarInt(playerid, "neongelb"), GetPlayerVehicleID(playerid), 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neongelb1"), GetPlayerVehicleID(playerid), -0.8,0,-0.70,0,0,0);
    }
    if(listitem == 5) //Pink
    {
    Status[playerid] = true;
    neonpink[playerid] = CreateObject(18651,0,0,0,0,0,0,283);
    neonpink1[playerid] = CreateObject(18651,0,0,0,0,0,0,283);
    AttachObjectToVehicle(GetPVarInt(playerid, "neonpink"), GetPlayerVehicleID(playerid), 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neonpink1"), GetPlayerVehicleID(playerid), -0.8,0,-0.70,0,0,0);
    }
    if(listitem == 6) // Remove
    Status[playerid] = false;
    }
    }



    So siehts jetzt aus.
    Wenn aber dieser Dialog offen ist, und ich "Escape" drücke, werde ich gekickt. Aber dieser "Kick" Befehl ist eig. in meinem Login / Register System drin.


    Hier mal mein ganzes OnDialogResponse und meine news etc.



    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    new pname[MAX_PLAYERS],accFormat[128];
    GetPlayerName(playerid,pname,sizeof pname);
    format(accFormat,sizeof accFormat,"Accounts/%s.txt",pname);
    if(response)
    {
    switch(dialogid)
    {
    case DIALOG_LOGIN:
    {
    if(!strlen(inputtext))
    {
    ShowPlayerDialog(playerid,DIALOG_LOGIN,1,"Einloggen","Bitte gebe dein Passwort ein um dich einzuloggen!","Login","Abbrechen");
    return SendClientMessage(playerid,COLOR_WHITE,"Kein Passwort eingegeben!");
    }
    if(strcmp(inputtext,dini_Get(accFormat,"Passwort")) == 0)
    {
    Spieler[playerid][Admin] = dini_Int(accFormat,"Admin");
    Spieler[playerid][Banned] = dini_Int(accFormat,"Banned");
    GivePlayerMoney(playerid,dini_Int(accFormat,"Geld"));
    SetPlayerScore(playerid,dini_Int(accFormat,"Kills"));
    Spieler[playerid][eingeloggt] = 1;
    SendClientMessage(playerid,COLOR_WHITE,"Erfolgreich eingeloggt!");
    }
    else
    {
    ShowPlayerDialog(playerid,DIALOG_LOGIN,1,"Einloggen","Bitte gebe dein Passwort ein um dich einzuloggen!","Login","Abbrechen");
    GameTextForPlayer(playerid,"~r~Falsches Passwort~w~!!",3000,1);
    }
    }
    case DIALOG_REG:
    {
    if(!strlen(inputtext))
    {
    ShowPlayerDialog(playerid,DIALOG_REG,1,"Registrieren","Bitte gebe dein gewünschtest Passwort ein \num dich zu registrieren!","Registrieren","Abbrechen");
    return SendClientMessage(playerid,COLOR_WHITE,"Das Passwort ist zu kurz!");
    }
    dini_Create(accFormat);
    dini_Set(accFormat,"Passwort",inputtext);
    Spieler[playerid][eingeloggt] = 1;
    SendClientMessage(playerid,COLOR_WHITE,"Account erfolgreich in der Datenbank erstellt!");
    SendClientMessage(playerid,COLOR_DARKGREEN,"Du wurdest vom System eingeloggt!");
    SendClientMessage(playerid,COLOR_DARKRED,"Bitte lese dir alle Regeln durch. Du kannst sie im Forum finden!");
    SendClientMessage(playerid,COLOR_DARKRED,"Viel Spaß beim Spielen wünscht dir das GFX-x Team!");
    // Register Einstellungen //
    GivePlayerMoney(playerid,1000);
    SetPlayerScore(playerid,0);
    dini_IntSet(accFormat,"Admin",0);
    dini_IntSet(accFormat,"Premium",0);
    dini_IntSet(accFormat,"Banned",0);
    dini_IntSet(accFormat,"KIlls",0);
    }
    }
    }
    else if(!response)
    {
    new pName[MAX_PLAYER_NAME];
    new string[256];
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "AdmCmd: %s wurde vom Server gekickt, Grund: Falsches Passwort", pName);
    SendClientMessageToAll(COLOR_DARKRED, string);
    Kick(playerid);

    }

    /*
    new neonblau[MAX_PLAYERS];
    new neonblau1[MAX_PLAYERS];
    new neongrun[MAX_PLAYERS];
    new neongrun1[MAX_PLAYERS];
    new neonrot[MAX_PLAYERS];
    new neonrot1[MAX_PLAYERS];
    new neonweis[MAX_PLAYERS];
    new neonweis1[MAX_PLAYERS];
    new neongelb[MAX_PLAYERS];
    new neongelb1[MAX_PLAYERS];
    new neonpink[MAX_PLAYERS];
    new neonpink1[MAX_PLAYERS];


    */


    if(dialogid == neonmenu) //Neon Röhren
    {
    if(response)
    {
    if(listitem == 0) //Blau
    {
    SetPVarInt(playerid, "Status", 1);
    neonblau[playerid] = CreateObject(18648,0,0,0,0,0,0,283);
    neonblau1[playerid] = CreateObject(18648,0,0,0,0,0,0,283);
    AttachObjectToVehicle(GetPVarInt(playerid, "neonblau"), GetPlayerVehicleID(playerid), 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neonblau1"), GetPlayerVehicleID(playerid), -0.8,0,-0.70,0,0,0);
    }
    if(listitem == 1) //Grün
    {
    Status[playerid] = true;
    neongrun[playerid] = CreateObject(18649,0,0,0,0,0,0,283);
    neongrun1[playerid] =CreateObject(18649,0,0,0,0,0,0,283);
    AttachObjectToVehicle(GetPVarInt(playerid, "neongrun"), GetPlayerVehicleID(playerid), 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neongrun1"), GetPlayerVehicleID(playerid), -0.8,0,-0.70,0,0,0);
    }
    if(listitem == 2) //Rot
    {
    Status[playerid] = true;
    neonrot[playerid] = CreateObject(18647,0,0,0,0,0,0,283);
    neonrot1[playerid] = CreateObject(18647,0,0,0,0,0,0,283);
    AttachObjectToVehicle(GetPVarInt(playerid, "neonrot"), GetPlayerVehicleID(playerid), 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neonrot1"), GetPlayerVehicleID(playerid), -0.8,0,-0.70,0,0,0);
    }
    if(listitem == 3) //Weiß
    {
    Status[playerid] = true;
    neonweis[playerid] = CreateObject(18652,0,0,0,0,0,0,283);
    neonweis1[playerid] = CreateObject(18652,0,0,0,0,0,0,283);
    AttachObjectToVehicle(GetPVarInt(playerid, "neonweis"), GetPlayerVehicleID(playerid), 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neonweis1"), GetPlayerVehicleID(playerid), -0.8,0,-0.70,0,0,0);
    }
    if(listitem == 4) //Gelb
    {
    Status[playerid] = true;
    neongelb[playerid] = CreateObject(18650,0,0,0,0,0,0,283);
    neongelb1[playerid] = CreateObject(18650,0,0,0,0,0,0,283);
    AttachObjectToVehicle(GetPVarInt(playerid, "neongelb"), GetPlayerVehicleID(playerid), 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neongelb1"), GetPlayerVehicleID(playerid), -0.8,0,-0.70,0,0,0);
    }
    if(listitem == 5) //Pink
    {
    Status[playerid] = true;
    neonpink[playerid] = CreateObject(18651,0,0,0,0,0,0,283);
    neonpink1[playerid] = CreateObject(18651,0,0,0,0,0,0,283);
    AttachObjectToVehicle(GetPVarInt(playerid, "neonpink"), GetPlayerVehicleID(playerid), 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neonpink1"), GetPlayerVehicleID(playerid), -0.8,0,-0.70,0,0,0);
    }
    if(listitem == 6) // Remove
    Status[playerid] = false;
    }
    }
    return 1;
    }






    if(strcmp("/neon", cmdtext, true, 10) == 0)
    {
    ShowPlayerDialog(playerid, neonmenu, DIALOG_STYLE_LIST, "Neonlichter Menu", "Blau\nGrün\nRot\nWeiß\nGelb\nPink\nNeon Löschen", "Auswählen", "Abbrechen");
    SendClientMessage(playerid,COLOR_WHITE,"Bitte nur einen Neon ranmachen, da es sonst Buggen könnte!");
    return 1;
    }



    Ganz oben:



    new neonblau[MAX_PLAYERS];
    new neonblau1[MAX_PLAYERS];
    new neongrun[MAX_PLAYERS];
    new neongrun1[MAX_PLAYERS];
    new neonrot[MAX_PLAYERS];
    new neonrot1[MAX_PLAYERS];
    new neonweis[MAX_PLAYERS];
    new neonweis1[MAX_PLAYERS];
    new neongelb[MAX_PLAYERS];
    new neongelb1[MAX_PLAYERS];
    new neonpink[MAX_PLAYERS];
    new neonpink1[MAX_PLAYERS];
    new bool:Status[MAX_PLAYERS];



    #define neonmenu 3


    Pls help. ._. :(

  • Oke, habe eins.


    Aber jetzt habe ich noch ein Problem.
    Wenn ich z.B einen Dialog offen habe, und Escape drücke, werde ich immer gekickt. Dieser "Kick-Befehl" ist in meinem Login / Reg System:




    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    new pname[MAX_PLAYERS],accFormat[128];
    GetPlayerName(playerid,pname,sizeof pname);
    format(accFormat,sizeof accFormat,"Accounts/%s.txt",pname);
    if(response)
    {
    switch(dialogid)
    {
    case DIALOG_LOGIN:
    {
    if(!strlen(inputtext))
    {
    ShowPlayerDialog(playerid,DIALOG_LOGIN,1,"Einloggen","Bitte gebe dein Passwort ein um dich einzuloggen!","Login","Abbrechen");
    return SendClientMessage(playerid,COLOR_WHITE,"Kein Passwort eingegeben!");
    }
    if(strcmp(inputtext,dini_Get(accFormat,"Passwort")) == 0)
    {
    Spieler[playerid][Admin] = dini_Int(accFormat,"Admin");
    Spieler[playerid][Banned] = dini_Int(accFormat,"Banned");
    GivePlayerMoney(playerid,dini_Int(accFormat,"Geld"));
    SetPlayerScore(playerid,dini_Int(accFormat,"Kills"));
    Spieler[playerid][eingeloggt] = 1;
    SendClientMessage(playerid,COLOR_WHITE,"Erfolgreich eingeloggt!");
    }
    else
    {
    ShowPlayerDialog(playerid,DIALOG_LOGIN,1,"Einloggen","Bitte gebe dein Passwort ein um dich einzuloggen!","Login","Abbrechen");
    GameTextForPlayer(playerid,"~r~Falsches Passwort~w~!!",3000,1);
    }
    }
    case DIALOG_REG:
    {
    if(!strlen(inputtext))
    {
    ShowPlayerDialog(playerid,DIALOG_REG,1,"Registrieren","Bitte gebe dein gewünschtest Passwort ein \num dich zu registrieren!","Registrieren","Abbrechen");
    return SendClientMessage(playerid,COLOR_WHITE,"Das Passwort ist zu kurz!");
    }
    dini_Create(accFormat);
    dini_Set(accFormat,"Passwort",inputtext);
    Spieler[playerid][eingeloggt] = 1;
    SendClientMessage(playerid,COLOR_WHITE,"Account erfolgreich in der Datenbank erstellt!");
    SendClientMessage(playerid,COLOR_DARKGREEN,"Du wurdest vom System eingeloggt!");
    SendClientMessage(playerid,COLOR_DARKRED,"Bitte lese dir alle Regeln durch. Du kannst sie im Forum finden!");
    SendClientMessage(playerid,COLOR_DARKRED,"Viel Spaß beim Spielen wünscht dir das GFX-x Team!");
    // Register Einstellungen //
    GivePlayerMoney(playerid,1000);
    SetPlayerScore(playerid,0);
    dini_IntSet(accFormat,"Admin",0);
    dini_IntSet(accFormat,"Premium",0);
    dini_IntSet(accFormat,"Banned",0);
    dini_IntSet(accFormat,"KIlls",0);
    }
    }
    }
    else if(!response)
    {
    new pName[MAX_PLAYER_NAME];
    new string[256];
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "AdmCmd: %s wurde vom Server gekickt, Grund: Falsches Passwort", pName);
    SendClientMessageToAll(COLOR_DARKRED, string);
    Kick(playerid);

    }



    return 1;
    }



    Kann mir jemand helfen? <.<

  • Ich würds so machen:


    new neon[MAX_VEHICLES][2];
    Beim Dialog:

    //...
    if(listitem == 0) //Blau
    {
    new vehid = GetPlayerVehicleID(playerid);
    DestroyObject(neon[vehid][0]); //löscht die alten Neonröhren -> immer nur 1 Farbe am Auto
    DestroyObject(neon[vehid][1]);
    neon[vehid][0] = CreateObject(18648,0,0,0,0,0,0,283);
    neon[vehid][1] = CreateObject(18648,0,0,0,0,0,0,283);
    AttachObjectToVehicle(neon[vehid][0],vehid, 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(neon[vehid][1], vehid, -0.8,0,-0.70,0,0,0);
    }
    //...
    EDIT: kleiner Fehler

  • //Neon By Jason And Roxenis
    #include <a_samp>


    #pragma tabsize 0
    #define neondialog 8131




    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print("Neon Script Von Jason ");
    print("--------------------------------------\n");
    return 1;
    //COLOR
    #define COLOR_YELLOW 0xFFFF00AA
    #define COLOR_BLUE 0x1229FAFF
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    //CMD
    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp(cmdtext, "/neon", true)==0)
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    ShowPlayerDialog(playerid, neondialog, DIALOG_STYLE_LIST, "Neon Farben", "Blau\nRot\nGrün\nWeiß\nPink\nGelb\nNeon Löschen", "Wählen", "Abbrechen");
    }
    return 1;
    }
    return 0;
    }


    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {


    if(dialogid == neondialog)
    {
    if(response)
    {
    if(listitem == 0)
    {
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon", CreateObject(18648,0,0,0,0,0,0));
    SetPVarInt(playerid, "neon1", CreateObject(18648,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    SendClientMessage(playerid, 0xFFFF00AA, "Neon Installiert.");
    }
    if(listitem == 1)
    {
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon2", CreateObject(18647,0,0,0,0,0,0));
    SetPVarInt(playerid, "neon3", CreateObject(18647,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon2"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon3"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    SendClientMessage(playerid, 0xFFFF00AA, "Neon Installiert.");


    }
    if(listitem == 2)
    {
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon4", CreateObject(18649,0,0,0,0,0,0));
    SetPVarInt(playerid, "neon5", CreateObject(18649,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon4"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon5"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    SendClientMessage(playerid, 0xFFFF00AA, "Neon Installiert.");


    }
    if(listitem == 3)
    {
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon6", CreateObject(18652,0,0,0,0,0,0));
    SetPVarInt(playerid, "neon7", CreateObject(18652,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon6"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon7"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    SendClientMessage(playerid, 0xFFFF00AA, "Neon Installiert.");


    }
    if(listitem == 4)
    {
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon8", CreateObject(18651,0,0,0,0,0,0));
    SetPVarInt(playerid, "neon9", CreateObject(18651,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon8"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon9"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    SendClientMessage(playerid, 0xFFFF00AA, "Neon Installiert.");


    }
    if(listitem == 5)
    {
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon10", CreateObject(18650,0,0,0,0,0,0));
    SetPVarInt(playerid, "neon11", CreateObject(18650,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon10"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon11"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    SendClientMessage(playerid, 0xFFFF00AA, "Neon Installiert.");


    }


    if(listitem == 9){DestroyObject(GetPVarInt(playerid, "neon")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon1")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon2")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon3"));
    DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon4")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon5")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon6")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon7"));
    DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon8")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon9")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon10")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon13"));
    DeletePVar(playerid, "Status");
    }
    }
    }
    return 0;
    }