Beiträge von xSonYx

    /park. Fehler.



    Hallo Community,
    Ich hab ein System mit dem man Autos kaufen kann(wer hats nich^^).Mit /park soll man die Auto Posi speichern können das wenn man nächstes mal in Server kommt das es da spawnt aber ich bekomme 6 errors. Hier ist der Befehl:



    PAWN Quelltext
    if(strcmp("/park", cmdtext, true) == 0)
    {
    for(new i = 0; i < 3; i++)
    {
    new Autodatei[100],name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Autodatei,sizeof(Autodatei),"/Autos/%s_Auto_%d.ini",name,i);
    if(dini_Exists(Autodatei))
    {
    new Float:posx,Float:posy,Float:posz,Float:posa;
    GetVehiclePos(Spielercar,posx,posy,posz);/*730*/
    GetVehicleZAngle(Spielercar,posa);/*731*/
    dini_FloatSet(Autodatei,"posx",Autos[playerid][posx]);
    /*732*/
    dini_FloatSet(Autodatei,"posy",Autos[playerid][posy]);
    /*733*/
    dini_FloatSet(Autodatei,"posz",Autos[playerid][posz]);
    /*734*/
    dini_FloatSet(Autodatei,"posa",Autos[playerid][posa]);
    /*735*/
    }
    }
    }




    Hier die 6 Errors:


    C:\Users\Timo\Desktop\SAMP Server\gamemodes\Script.pwn(730) : error 035: argument type mismatch (argument 1)
    C:\Users\Timo\Desktop\SAMP Server\gamemodes\Script.pwn(731) : error 035: argument type mismatch (argument 1)
    C:\Users\Timo\Desktop\SAMP Server\gamemodes\Script.pwn(732) : error 091: ambiguous constant; tag override is required (symbol "posx")
    C:\Users\Timo\Desktop\SAMP Server\gamemodes\Script.pwn(733) : error 091: ambiguous constant; tag override is required (symbol "posy")
    C:\Users\Timo\Desktop\SAMP Server\gamemodes\Script.pwn(734) : error 091: ambiguous constant; tag override is required (symbol "posz")
    C:\Users\Timo\Desktop\SAMP Server\gamemodes\Script.pwn(735) : error 091: ambiguous constant; tag override is required (symbol "posa")

    Hallo Community,
    Ich hab ein System mit dem man Autos kaufen kann(wer hats nich^^).Mit /park soll man die Auto Posi speichern können das wenn man nächstes mal in Server kommt das es da spawnt aber ich bekomme 6 errors. Hier ist der Befehl:


    if(strcmp("/park", cmdtext, true) == 0)
    {
    for(new i = 0; i < 3; i++)
    {
    new Autodatei[100],name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Autodatei,sizeof(Autodatei),"/Autos/%s_Auto_%d.ini",name,i);
    if(dini_Exists(Autodatei))
    {
    new Float:posx,Float:posy,Float:posz,Float:posa;
    GetVehiclePos(Spielercar,posx,posy,posz);/*730*/
    GetVehicleZAngle(Spielercar,posa);/*731*/
    dini_FloatSet(Autodatei,"posx",Autos[playerid][i][posx]);
    /*732*/
    dini_FloatSet(Autodatei,"posy",Autos[playerid][i][posy]);
    /*733*/
    dini_FloatSet(Autodatei,"posz",Autos[playerid][i][posz]);
    /*734*/
    dini_FloatSet(Autodatei,"posa",Autos[playerid][i][posa]);
    /*735*/
    }
    }
    }


    Hier die 6 Errors:


    C:\Users\Timo\Desktop\SAMP Server\gamemodes\Script.pwn(730) : error 035: argument type mismatch (argument 1)
    C:\Users\Timo\Desktop\SAMP Server\gamemodes\Script.pwn(731) : error 035: argument type mismatch (argument 1)
    C:\Users\Timo\Desktop\SAMP Server\gamemodes\Script.pwn(732) : error 091: ambiguous constant; tag override is required (symbol "posx")
    C:\Users\Timo\Desktop\SAMP Server\gamemodes\Script.pwn(733) : error 091: ambiguous constant; tag override is required (symbol "posy")
    C:\Users\Timo\Desktop\SAMP Server\gamemodes\Script.pwn(734) : error 091: ambiguous constant; tag override is required (symbol "posz")
    C:\Users\Timo\Desktop\SAMP Server\gamemodes\Script.pwn(735) : error 091: ambiguous constant; tag override is required (symbol "posa")

    Hallo Coummnuity,
    Wenn man in ein Fraktionscar einsteigt das nicht zur seiner Fraktion gehört dann soll man rausgeschmissen werden ich hab das so gemacht:


    new fahrschulcars[20];


    Bei Ongamemodeinit:
    fahrschulcars[0] = SetVehicleNumberPlate(AddStaticVehicle(426,648.9539,1711.1151,6.7341,41.9016,1,1,-1),"NG|FS"); // FS
    fahrschulcars[1] = SetVehicleNumberPlate(AddStaticVehicle(426,653.0562,1714.7867,6.7390,40.4990,1,1,-1),"NG|FS"); // FS
    fahrschulcars[2] = SetVehicleNumberPlate(AddStaticVehicle(426,669.6670,1729.4496,6.7352,42.4105,1,1,-1),"NG|FS"); // FS
    fahrschulcars[3] = SetVehicleNumberPlate(AddStaticVehicle(426,665.5614,1725.7667,6.7359,40.8341,1,1,-1),"NG|FS"); // FS
    fahrschulcars[4] = SetVehicleNumberPlate(AddStaticVehicle(411,661.2795,1722.2440,6.7193,41.5660,1,1,-1),"NG|FS"); // FS
    fahrschulcars[5] = SetVehicleNumberPlate(AddStaticVehicle(411,657.3317,1718.3507,6.7189,41.1615,1,1,-1),"NG|FS"); // FS
    fahrschulcars[6] = SetVehicleNumberPlate(AddStaticVehicle(515,617.3396,1660.3348,8.0063,66.1126,1,1,-1),"NG|FS"); // FS
    fahrschulcars[7] = SetVehicleNumberPlate(AddStaticVehicle(515,612.6125,1657.3539,8.0149,65.1512,1,1,-1),"NG|FS"); // FS
    fahrschulcars[8] = SetVehicleNumberPlate(AddStaticVehicle(515,608.4182,1653.8403,8.0144,67.4156,1,1,-1),"NG|FS"); // FS
    fahrschulcars[9] = AddStaticVehicle(435,600.4699,1646.9106,7.6293,64.3744,1,1); // FS_Anhänger fahrschulcars[10] = AddStaticVehicle(435,590.4467,1640.9539,7.6270,62.5936,1,1); // FS_Anhänger
    fahrschulcars[11] = AddStaticVehicle(435,594.8453,1644.1935,7.6238,66.2596,1,1); // FS_Anhänger
    fahrschulcars[12] = SetVehicleNumberPlate(AddStaticVehicle(521,687.2200,1713.8574,6.5632,306.1768,1,1,-1),"NG|FS"); // FS_Bike
    fahrschulcars[13] = SetVehicleNumberPlate(AddStaticVehicle(521,686.0963,1714.9490,6.5642,313.5703,1,1,-1),"NG|FS"); // FS_Bike
    fahrschulcars[14] = SetVehicleNumberPlate(AddStaticVehicle(521,684.9654,1716.2736,6.5631,312.3067,1,1,-1),"NG|FS"); // FS_Bike
    fahrschulcars[15] = SetVehicleNumberPlate(AddStaticVehicle(521,683.8790,1717.5204,6.5642,312.5035,1,1,-1),"NG|FS"); // FS_Bike
    fahrschulcars[16] = SetVehicleNumberPlate(AddStaticVehicle(500,649.9938,1702.6763,7.0955,129.7768,1,1,-1),"NG|FS"); // FS_Mesa
    fahrschulcars[17] = SetVehicleNumberPlate(AddStaticVehicle(500,653.1404,1698.5732,7.0988,130.4373,1,1,-1),"NG|FS"); // FS_Mesa4
    fahrschulcars[18] = AddStaticVehicle(593,290.8766,2539.1797,17.2810,179.8466,1,1); // FS_Flugzeug
    fahrschulcars[19] = AddStaticVehicle(593,325.5919,2543.3472,17.2683,179.3579,1,1); // FS_Flugzeug




    public OnPlayerStateChange(playerid, newstate, oldstate)
    {
    if(newstate == PLAYER_STATE_DRIVER)
    {
    for(new i = 0; i<sizeof(fahrschulcars); i++)
    {
    if(GetPlayerVehicleID(playerid) == fahrschulcars[i])
    {
    if(!IstSpielerInFraktion(playerid, 1))
    {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid,Rot,"Du bist kein Fahrlehrer!");
    }
    }
    }
    }
    return 1;
    }



    problem: wenn man in das erste auto also das ...car[0] einsteigt wird man vollgespamt von du bist das und das nicht nachrichten und man wird rausgekickt aber man kann in jedes andere frakcar mit jeder fraktion einsteignen:/
    mfG xSonYx

    Hallo Community,
    Ich habe einen /handschellen befehl gemacht mit dem cops leute in einem auto handschellen anlegen können damit diese das Auto nicht verlassen können oder weglaufen können. Problem: immer wenn ich /handschellen und ID eingeben von diesem Spieler steht nur dran "Diese Person ist nicht in deinem Fahrzeug!" obwohl er in meinem auto ist.


    PAWN CODE:


    ocmd:handschellen(playerid,params[])
    {
    new copname[32],string[128];
    new prisonname[32],copmsg[128];
    if(!IstSpielerInFraktion(playerid,4)) return SendClientMessage(playerid,Rot,"Du bist kein Cop!");
    else if(!IsPlayerInAnyVehicle(prisoner)) return SendClientMessage(playerid,Rot,"Diese Person ist nicht in deinem Fahrzeug!");
    else if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du bist in keinem Fahrzeug!");
    if(sscanf(params,"u",prisoner))return SendClientMessage(playerid,Gelb,"Nutzung:/handschellen [ID]!");
    GetPlayerName(playerid,copname,sizeof(copname));
    GetPlayerName(playerid,prisonname,sizeof(prisonname));
    format(string,sizeof(string),"%s hat dir Handschellen angelegt!",copname);
    format(copmsg,sizeof(copmsg),"Du hast %s Handschellen angelegt!",prisonname);
    SendClientMessage(prisoner,Hellblau,string);
    SendClientMessage(playerid,Hellblau,copmsg);
    TogglePlayerControllable(prisoner,0);
    return 1;
    }

    Hi Community,
    Ich habe einen /goto befehl gemacht mit dem man sich zu anderen telepotieren kann. Wenn man aber den befehl eingibt wird man auf der Farm vor dem Fleischberger telepotiert. Brauche schnelle Hilfe. danke
    mfG xSonYx


    Der Befehl:
    ocmd:goto(playerid,params[])
    {
    new pid;
    new Float:x, Float:y, Float:z, Float:RotZ;
    if(sscanf(params,"s",pid))return SendClientMessage(playerid,Gelb,"Benutzung: /goto [ID]!");
    GetPlayerPos(pid, x, y, z);
    GetPlayerFacingAngle(pid, RotZ);
    SetPlayerPos(playerid,x,y,z);
    }

    Hallo Community,


    In meinem Server habe ich eine Feuerwehr Fraktion und ich möchte das alle 20 minuten ein Brand irgendwo ausbricht und alle 3 Tage ein Großbrand nur weis ich nicht wie man Feuer erstellt. Bitte um Hilfe.


    mfG xSonYx

    new sirene[MAX_VEHICLES];
    new sirene1[MAX_VEHICLES];
    new sirene2[MAX_VEHICLES];
    new sirene3[MAX_VEHICLES];
    new sirene4[MAX_VEHICLES];
    new sirene5[MAX_VEHICLES];
    new UCL[MAX_VEHICLES];



    public OnVehicleSpawn(vehicleid)
    {
    DestroyObject(sirene[vehicleid]);
    DestroyObject(sirene1[vehicleid]);
    DestroyObject(sirene2[vehicleid]);
    DestroyObject(sirene3[vehicleid]);
    DestroyObject(sirene4[vehicleid]);
    UCL[vehicleid] = 0;//
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if(strcmp( "/sirene",cmdtext,true) == 0)
    {
    if(UCL[GetPlayerVehicleID(playerid)] == 0)
    {
    new tmpcar = GetPlayerVehicleID(playerid);
    if(GetVehicleModel(tmpcar) == 560)
    {
    sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene1[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,0,0,0,0,100);
    sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene4[GetPlayerVehicleID(playerid)] = CreateObject(19292,0,0,0,0,0,0,100);
    AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0 ,2.6,0,0,0,0);//Vorne Mitte
    AttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.5,0.0,0.85,0,0,0);//Dach sirene
    AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
    AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
    AttachObjectToVehicle(sirene4[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0,0.9,0.4,0,0,0);//Mittig im Fenster
    UCL[GetPlayerVehicleID(playerid)] = 1;
    return 1;
    }
    else if(GetVehicleModel(tmpcar) == 415)
    {
    sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene1[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,0,0,0,0,100);
    sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0 ,2.6,0,0,0,0);//Vorne Mitte
    AttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.4,-0.2,0.65,0,0,0);//Dach sirene
    AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
    AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
    UCL[GetPlayerVehicleID(playerid)] = 1;
    return 1;
    }
    else if(GetVehicleModel(tmpcar) == 451)
    {
    sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene1[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,0,0,0,0,100);
    sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0 ,2.6,0,0,0,0);//Vorne Mitte
    AttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.45,-0.3,0.6,0,0,0);//Dach sirene
    AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
    AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
    UCL[GetPlayerVehicleID(playerid)] = 1;
    return 1;
    }
    else if(GetVehicleModel(tmpcar) == 541)
    {
    sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene1[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,0,0,0,0,100);
    sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0 ,2.6,0,0,0,0);//Vorne Mitte
    AttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.45,-0.1,0.65,0,0,0);//Dach sirene
    AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
    AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
    UCL[GetPlayerVehicleID(playerid)] = 1;
    return 1;
    }
    else if(GetVehicleModel(tmpcar) == 470)
    {
    sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene1[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,0,0,0,0,100);
    sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0 ,2.6,0,0,0,0);//Vorne Mitte
    AttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.6,0.2,1.1,0,0,0);//Dach sirene
    AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
    AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
    UCL[GetPlayerVehicleID(playerid)] = 1;
    return 1;
    }
    else if(GetVehicleModel(tmpcar) == 421)
    {
    sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene1[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,0,0,0,0,100);
    sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0 ,2.6,0,0,0,0);//Vorne Mitte
    AttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.4,0.2,0.72,0,0,0);//Dach sirene
    AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
    AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
    UCL[GetPlayerVehicleID(playerid)] = 1;
    return 1;
    }
    else if(GetVehicleModel(tmpcar) == 405)
    {
    sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene1[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,0,0,0,0,100);
    sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0 ,2.6,0,0,0,0);//Vorne Mitte
    AttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.4,0,0.78,0,0,0);//Dach sirene
    AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
    AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
    UCL[GetPlayerVehicleID(playerid)] = 1;
    return 1;
    }
    else if(GetVehicleModel(tmpcar) == 426)
    {
    sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene1[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,0,0,0,0,100);
    sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0 ,2.6,0,0,0,0);//Vorne Mitte
    AttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.5,0,0.88,0,0,0);//Dach sirene
    AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
    AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
    UCL[GetPlayerVehicleID(playerid)] = 1;
    return 1;
    }
    else if(GetVehicleModel(tmpcar) == 517)
    {
    sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene1[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,0,0,0,0,100);
    sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0 ,2.6,0,0,0,0);//Vorne Mitte
    AttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.6,0,0.85,0,0,0);//Dach sirene
    AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
    AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
    UCL[GetPlayerVehicleID(playerid)] = 1;
    return 1;
    }
    else if(GetVehicleModel(tmpcar) == 598)
    {
    sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0 ,2.6,0,0,0,0);//Vorne Mitte
    AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
    AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
    UCL[GetPlayerVehicleID(playerid)] = 1;
    return 1;
    }
    else if(GetVehicleModel(tmpcar) == 597)
    {
    sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0 ,2.6,0,0,0,0);//Vorne Mitte
    AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
    AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
    UCL[GetPlayerVehicleID(playerid)] = 1;
    return 1;
    }
    else if(GetVehicleModel(tmpcar) == 596)
    {
    sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0 ,2.6,0,0,0,0);//Vorne Mitte
    AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
    AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
    UCL[GetPlayerVehicleID(playerid)] = 1;
    return 1;
    }
    else if(GetVehicleModel(tmpcar) == 411)
    {
    sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene1[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,0,0,0,0,100);
    sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0 ,2.6,0,0,0,0);//Vorne Mitte
    AttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.44,0.3,0.7,0,0,0);//Dach sirene
    AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
    AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
    UCL[GetPlayerVehicleID(playerid)] = 1;
    return 1;
    }
    else if(GetVehicleModel(tmpcar) == 525)
    {
    sirene[GetPlayerVehicleID(playerid)] = CreateObject(19154,-0.0089111328, 0.273193359, 1.4037838, 0.0, 0.0, 96.0);
    sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19154,-0.0089111328, 0.273193359, 1.4037838, 0.0, 0.0, 96.0);
    sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19154,-0.0089111328, 0.273193359, 1.4037838, 0.0, 0.0, 96.0);
    sirene4[GetPlayerVehicleID(playerid)] = CreateObject(19154,-0.0089111328, 0.273193359, 1.4037838, 0.0, 0.0, 96.0);
    sirene5[GetPlayerVehicleID(playerid)] = CreateObject(19154,-0.0089111328, 0.273193359, 1.4037838, 0.0, 0.0, 96.0);
    AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)], GetPlayerVehicleID(playerid), -0.0089111328, -0.5, 1.55, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)], GetPlayerVehicleID(playerid), -0.5, -0.5, 1.55, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)], GetPlayerVehicleID(playerid), 0.5, -0.5, 1.55, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(sirene4[GetPlayerVehicleID(playerid)], GetPlayerVehicleID(playerid), -0.5, 2.75, 0.6, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(sirene5[GetPlayerVehicleID(playerid)], GetPlayerVehicleID(playerid), 0.5, 2.75, 0.6, 0.0, 0.0, 0.0);
    UCL[GetPlayerVehicleID(playerid)] = 1;
    return 1;
    }
    else if(GetVehicleModel(tmpcar) == 561)
    {
    sirene[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,0,0,0,0,100);
    sirene1[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,0,0,0,0,100);
    AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.4,0.1,0.85,0,0,0);//Dach Beifahrer
    AttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.4,0.1,0.85,0,0,0);//Dach Fahrer
    UCL[GetPlayerVehicleID(playerid)] = 1;
    return 1;
    }
    }
    else if(UCL[GetPlayerVehicleID(playerid)] == 1)
    {
    DestroyObject(sirene[GetPlayerVehicleID(playerid)]);
    DestroyObject(sirene1[GetPlayerVehicleID(playerid)]);
    DestroyObject(sirene2[GetPlayerVehicleID(playerid)]);
    DestroyObject(sirene3[GetPlayerVehicleID(playerid)]);
    DestroyObject(sirene4[GetPlayerVehicleID(playerid)]);
    UCL[GetPlayerVehicleID(playerid)] = 0;
    return 1;
    }
    }