Admin duty dieser befehl geht nicht

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

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Hallo dieser Befehl geht immer noch nicht da kommt der warning das es nicht benutzt wird also der hier symbol is never used: "dcmd_aduty"


    new IsOnDuty[MAX_PLAYERS];



    dcmd_aduty(playerid,params[])
    {
    #pragma unused params
    new aname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, aname, sizeof(aname));
    if(SInfo[playerid][pAdmin] >= 1)
    {
    new string[128];
    if(IsOnDuty[playerid] == 0)
    {
    format(string,sizeof(string)," %s ist nun als Supporter angemeldet!",aname);
    SendClientMessageToAll(0xFF002DFF,string);
    SetPlayerColor(playerid,0xFF002DFF);
    Spielerlabel[playerid] = Create3DTextLabel("Supporter OnDuty", 0xFF002DFF, 0, 0, 1.0, 20.0,-1,0);
    Attach3DTextLabelToPlayer(Spielerlabel[playerid], playerid, 0.0, 0.0, 0.7);
    IsOnDuty[playerid] = 0;
    }
    else
    {
    format(string,sizeof(string)," %s ist nun als Supporter abgemeldet!",aname);
    SendClientMessageToAll(0xFF002DFF,string);
    SetPlayerColor(playerid, 0xAAAAAA00);
    Delete3DTextLabel(Spielerlabel[playerid]);
    IsOnDuty[playerid] = 1;
    }
    }
    return 1;
    }

  • public OnPlayerCommandText(playerid, cmdtext[])
    {
    dcmd(aduty, 5, cmdtext);
    return 0;
    }

    dcmd_aduty(playerid,params[])
    {
    #pragma unused params
    new aname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, aname, sizeof(aname));
    if(SInfo[playerid][pAdmin] >= 1)
    {
    new string[128];
    if(IsOnDuty[playerid] == 0)
    {
    format(string,sizeof(string)," %s ist nun als Supporter angemeldet!",aname);
    SendClientMessageToAll(0xFF002DFF,string);
    SetPlayerColor(playerid,0xFF002DFF);
    Spielerlabel[playerid] = Create3DTextLabel("Supporter OnDuty", 0xFF002DFF, 0, 0, 1.0, 20.0,-1,0);
    Attach3DTextLabelToPlayer(Spielerlabel[playerid], playerid, 0.0, 0.0, 0.7);
    IsOnDuty[playerid] = 0;
    }
    else
    {
    format(string,sizeof(string)," %s ist nun als Supporter abgemeldet!",aname);
    SendClientMessageToAll(0xFF002DFF,string);
    SetPlayerColor(playerid, 0xAAAAAA00);
    Delete3DTextLabel(Spielerlabel[playerid]);
    IsOnDuty[playerid] = 1;
    }
    }
    return 1;
    }


    Probier es mal so, Mit freundlichen Grüßen
    duengonalex



  • danke aber dann kommt der error hier symbol already defined: "ocmdOnPlayerCommandText"

  • Entweder nutzt du dcmd oder ocmd aber nicht beides.


    Der Fehler mit ocmdOnPlayerCommandText kommt wahrscheinlich davon das du das Callback OnPlayerCommandText nun mehr als nur 1 mal enthalten hast in deinem skript
    weil du den code eifnach kopiert hast

  • Was steht denn alles bei dir unter OnPlayerCommandText




    public OnPlayerCommandText(playerid,cmdtext[])
    {
    if(Mundtape[playerid] == 0)
    {
    dcmd(haussuchen,10,cmdtext);
    dcmd(sex,3,cmdtext);
    dcmd(gotocar,7,cmdtext);
    dcmd(getcar,6,cmdtext);
    dcmd(ca,2,cmdtext);
    dcmd(an,2,cmdtext);
    dcmd(paintball,9,cmdtext);
    dcmd(lotto,5,cmdtext);
    dcmd(beute,5,cmdtext);
    dcmd(rauchen,7,cmdtext);
    dcmd(jailtime,8,cmdtext);
    dcmd(rubbeldd,8,cmdtext);
    dcmd(sapdspawn,9,cmdtext);
    dcmd(setwp,5,cmdtext);
    dcmd(repv,4,cmdtext);
    dcmd(frang,5,cmdtext);
    dcmd(slot,4,cmdtext);
    dcmd(durchsuchen,11,cmdtext);
    dcmd(mullweg,7,cmdtext);
    dcmd(aufzug,6,cmdtext);
    dcmd(mullab,6,cmdtext);
    dcmd(gmbh,4,cmdtext);
    dcmd(bizkasse,8,cmdtext);
    dcmd(setskin,7,cmdtext);
    dcmd(sit,3,cmdtext);
    dcmd(wave,4,cmdtext);
    dcmd(drunk,5,cmdtext);
    dcmd(usedrugs,8,cmdtext);
    dcmd(dance,5,cmdtext);
    dcmd(crack,5,cmdtext);
    dcmd(handsup,7,cmdtext);
    dcmd(ator1,5,cmdtext);
    dcmd(ator1,5,cmdtext);
    dcmd(ator2,5,cmdtext);
    dcmd(sm,2,cmdtext);
    dcmd(nooc,4,cmdtext);
    dcmd(augenbinde,10,cmdtext);
    dcmd(haus,4,cmdtext);
    dcmd(xdd,3,cmdtext);
    dcmd(hausmove,8,cmdtext);
    dcmd(gar,3,cmdtext);
    dcmd(hausmove2,9,cmdtext);
    dcmd(hausmove3,9,cmdtext);
    dcmd(hausmove4,9,cmdtext);
    dcmd(hausxd,6,cmdtext);
    dcmd(garaxd,6,cmdtext);
    dcmd(hausto,6,cmdtext);
    dcmd(garato,6,cmdtext);
    dcmd(skin,4,cmdtext);
    dcmd(steuerkasse,11,cmdtext);
    dcmd(setsteuern,10,cmdtext);
    dcmd(rangname,8,cmdtext);
    dcmd(automatloschen,14,cmdtext);
    dcmd(cautomat,8,cmdtext);
    dcmd(setpreisp,9,cmdtext);
    dcmd(setpreisl,9,cmdtext);
    dcmd(tankeloschen,12,cmdtext);
    dcmd(knasti,6,cmdtext);
    dcmd(mitglieder,10,cmdtext);
    dcmd(admins,6,cmdtext);
    dcmd(refill,6,cmdtext);
    dcmd(repair,6,cmdtext);
    dcmd(nein,4,cmdtext);
    dcmd(carverkaufenan,14,cmdtext);
    dcmd(service,7,cmdtext);
    dcmd(pliefern,8,cmdtext);
    dcmd(aw,2,cmdtext);
    dcmd(fastcp,6,cmdtext);
    dcmd(binco,5,cmdtext);
    dcmd(fatf,4,cmdtext);
    dcmd(fastgo,6,cmdtext);
    dcmd(fastgw,6,cmdtext);
    dcmd(fastan,6,cmdtext);
    dcmd(fastmm,6,cmdtext);
    dcmd(sms,3,cmdtext);
    dcmd(mdienst,7,cmdtext);
    dcmd(mheal,5,cmdtext);
    dcmd(otor,4,cmdtext);
    dcmd(peilsender,10,cmdtext);
    dcmd(ps,2,cmdtext);
    dcmd(pso,3,cmdtext);
    dcmd(freeze,6,cmdtext);
    dcmd(fahrstunde,10,cmdtext);
    dcmd(unfreeze,8,cmdtext);
    dcmd(slap,4,cmdtext);
    dcmd(stvo,4,cmdtext);
    dcmd(selbstmord,10,cmdtext);
    dcmd(gebepunkte,10,cmdtext);
    dcmd(ticket,6,cmdtext);
    dcmd(ja,2,cmdtext);
    dcmd(hvkan,5,cmdtext);
    dcmd(showlicpreise,13,cmdtext);
    dcmd(nb,2,cmdtext);
    dcmd(nbw,3,cmdtext);
    dcmd(nbwa,4,cmdtext);
    dcmd(kampfstyles,11,cmdtext);
    dcmd(menu,4,cmdtext);
    dcmd(tutorial,8,cmdtext);
    dcmd(gotols,6,cmdtext);
    dcmd(gotosf,6,cmdtext);
    dcmd(gotolv,6,cmdtext);
    dcmd(bizkaufen,9,cmdtext);
    dcmd(bizverkaufen,12,cmdtext);
    dcmd(bkaufen,7,cmdtext);
    dcmd(bizloschen,10,cmdtext);
    dcmd(braum,5,cmdtext);
    dcmd(ausruesten,10,cmdtext);
    dcmd(ausrusten,9,cmdtext);
    dcmd(pdd,3,cmdtext);
    dcmd(gov,3,cmdtext);
    dcmd(fbiuniform,10,cmdtext);
    dcmd(givedonator,11,cmdtext);
    dcmd(cbiz,4,cmdtext);
    dcmd(ctanke,6,cmdtext);
    //dcmd(aond,4,cmdtext);
    //dcmd(aoffd,5,cmdtext);
    dcmd(sethp,5,cmdtext);
    dcmd(setarmor,8,cmdtext);
    dcmd(tv,2,cmdtext);
    dcmd(amedic,6,cmdtext);
    dcmd(heal,4,cmdtext);
    dcmd(wiederbeleben,13,cmdtext);
    dcmd(tvoff,5,cmdtext);
    dcmd(f,1,cmdtext);
    dcmd(swat,4,cmdtext);
    dcmd(swata,5,cmdtext);
    dcmd(m,1,cmdtext);
    dcmd(orten,5,cmdtext);
    dcmd(frisk,5,cmdtext);
    dcmd(ernten,6,cmdtext);
    dcmd(startflug,9,cmdtext);
    //dcmd(aufzug,6,cmdtext);
    dcmd(buygun,6,cmdtext);
    dcmd(stats,5,cmdtext);
    dcmd(check,5,cmdtext);
    dcmd(spawnchange,11,cmdtext);
    dcmd(dc,2,cmdtext);
    dcmd(gmbhtor,7,cmdtext);
    dcmd(serverinfo,10,cmdtext);
    dcmd(gps,3,cmdtext);
    dcmd(carcp,5,cmdtext);
    dcmd(gurt,4,cmdtext);
    dcmd(radio,5,cmdtext);
    dcmd(acp,3,cmdtext);
    dcmd(gwd,3,cmdtext);
    dcmd(sstarten,8,cmdtext);
    dcmd(pd1,3,cmdtext);
    dcmd(sellgun,7,cmdtext);
    dcmd(pd2,3,cmdtext);
    dcmd(pd3,3,cmdtext);
    dcmd(event,5,cmdtext);
    dcmd(eevent,6,cmdtext);
    dcmd(devent,6,cmdtext);
    dcmd(clear,5,cmdtext);
    dcmd(kredit,6,cmdtext);
    dcmd(roller,6,cmdtext);
    dcmd(rlock,5,cmdtext);
    dcmd(werbung,7,cmdtext);
    dcmd(report,6,cmdtext);
    dcmd(maut,4,cmdtext);
    dcmd(piss,4,cmdtext);
    dcmd(garage,6,cmdtext);
    dcmd(lenter,6,cmdtext);
    dcmd(lexit,5,cmdtext);
    dcmd(renter,6,cmdtext);
    dcmd(rexit,5,cmdtext);
    dcmd(rienter,7,cmdtext);
    dcmd(riexit,6,cmdtext);
    dcmd(yenter,6,cmdtext);
    dcmd(yexit,5,cmdtext);
    dcmd(ftor2,5,cmdtext);
    dcmd(yakuza1,7,cmdtext);
    dcmd(yakuza2,7,cmdtext);
    dcmd(lcn1,4,cmdtext);
    dcmd(lcn2,4,cmdtext);
    dcmd(terror1,7,cmdtext);
    dcmd(terror2,7,cmdtext);
    dcmd(rm1,3,cmdtext);
    dcmd(rm2,3,cmdtext);
    dcmd(copyright,9,cmdtext);
    dcmd(hilfe,5,cmdtext);
    dcmd(makeleader,10,cmdtext);
    dcmd(makeadmin,9,cmdtext);
    dcmd(pban,4,cmdtext);
    dcmd(ban,3,cmdtext);
    dcmd(kick,4,cmdtext);
    dcmd(spawn,5,cmdtext);
    dcmd(veh,3,cmdtext);
    dcmd(cveh,4,cmdtext);
    dcmd(bank,4,cmdtext);
    dcmd(job,3,cmdtext);
    dcmd(showperso,9,cmdtext);
    dcmd(personalausweis,15,cmdtext);
    dcmd(kofferraum,10,cmdtext);
    dcmd(motorh,6,cmdtext);
    dcmd(licht,5,cmdtext);
    dcmd(motor,5,cmdtext);
    dcmd(kanister,8,cmdtext);
    dcmd(tanken,6,cmdtext);
    dcmd(allescheine,11,cmdtext);
    dcmd(d,1,cmdtext);
    dcmd(ranggeben,9,cmdtext);
    dcmd(setlohn,7,cmdtext);
    dcmd(gebeschein,10,cmdtext);
    dcmd(fbank,5,cmdtext);
    dcmd(take,4,cmdtext);
    dcmd(rauswerfen,10,cmdtext);
    dcmd(starten,7,cmdtext);
    dcmd(fahrpreis,9,cmdtext);
    dcmd(hstart,6,cmdtext);
    dcmd(tankstart,9,cmdtext);
    dcmd(tankaufladen,12,cmdtext);
    dcmd(tankabladen,11,cmdtext);
    dcmd(goto,4,cmdtext);
    dcmd(gethere,7,cmdtext);
    dcmd(ptor,4,cmdtext);
    dcmd(su,2,cmdtext);
    dcmd(arrest,6,cmdtext);
    dcmd(tazer,5,cmdtext);
    dcmd(cuff,4,cmdtext);
    dcmd(uncuff,6,cmdtext);
    dcmd(startstunde,11,cmdtext);
    dcmd(stopstunde,10,cmdtext);
    dcmd(kidnap,6,cmdtext);
    dcmd(fesseln,7,cmdtext);
    dcmd(fesselnweg,10,cmdtext);
    dcmd(gangjail,8,cmdtext);
    dcmd(ungangjail,10,cmdtext);
    dcmd(benter,6,cmdtext);
    dcmd(bexit,5,cmdtext);
    dcmd(genter,6,cmdtext);
    dcmd(gexit,5,cmdtext);
    dcmd(vaenter,7,cmdtext);
    dcmd(vaexit,6,cmdtext);
    dcmd(hauskaufen,10,cmdtext);
    dcmd(hausverkaufen,13,cmdtext);
    dcmd(hauserstellen,13,cmdtext);
    dcmd(hausloschen,11,cmdtext);
    dcmd(mieten,6,cmdtext);
    dcmd(ausmieten,9,cmdtext);
    dcmd(mietbar,7,cmdtext);
    dcmd(mietpreis,9,cmdtext);
    dcmd(hauskasse,9,cmdtext);
    dcmd(iraum,5,cmdtext);
    dcmd(abschliesen,11,cmdtext);
    dcmd(kaufen,6,cmdtext);
    dcmd(enter,5,cmdtext);
    dcmd(exit,4,cmdtext);
    dcmd(givemoney,9,cmdtext);
    dcmd(setlevel,8,cmdtext);
    dcmd(levelkaufen,11,cmdtext);
    dcmd(aufbohren,9,cmdtext);
    dcmd(aufbrechen,10,cmdtext);
    dcmd(fautokauf,9,cmdtext);
    dcmd(fpark,5,cmdtext);
    dcmd(fraksrangs,10,cmdtext);
    dcmd(fcarsell,8,cmdtext);
    dcmd(fixveh,6,cmdtext);
    dcmd(warn,4,cmdtext);
    dcmd(uniform,7,cmdtext);
    dcmd(waffen,6,cmdtext);
    dcmd(dienst,6,cmdtext);
    dcmd(frakid,6,cmdtext);
    dcmd(a,1,cmdtext);
    dcmd(o,1,cmdtext);
    dcmd(gesucht,7,cmdtext);
    dcmd(versicherung,12,cmdtext);
    dcmd(versicherung2,13,cmdtext);
    dcmd(stadthalle,10,cmdtext);
    dcmd(nummer,6,cmdtext);
    dcmd(anrufen,7,cmdtext);
    dcmd(abheben,7,cmdtext);
    dcmd(auflegen,8,cmdtext);
    dcmd(handy,5,cmdtext);
    dcmd(handy3,6,cmdtext);
    dcmd(handymenu,9,cmdtext);
    dcmd(drivein,7,cmdtext);
    dcmd(givegun,7,cmdtext);
    dcmd(ftor,4,cmdtext);
    dcmd(armyuniform,11,cmdtext);
    dcmd(wank,4,cmdtext);
    dcmd(rcs,3,cmdtext);
    dcmd(me,2,cmdtext);
    dcmd(s,1,cmdtext);
    dcmd(auftrag,7,cmdtext);
    dcmd(auftrage,8,cmdtext);
    dcmd(accept,6,cmdtext);
    dcmd(bombelegen,10,cmdtext);
    dcmd(defuse,6,cmdtext);
    dcmd(armytor1,8,cmdtext);
    dcmd(armytor2,8,cmdtext);
    dcmd(armytor3,8,cmdtext);
    dcmd(armytor4,8,cmdtext);
    dcmd(einladen,8,cmdtext);
    dcmd(annehmen,8,cmdtext);
    dcmd(blitzer,7,cmdtext);
    dcmd(cblitzer,8,cmdtext);
    dcmd(cablitzer,9,cmdtext);
    dcmd(pay,3,cmdtext);
    dcmd(anfangsskin,11,cmdtext);
    dcmd(opark,5,cmdtext);
    dcmd(selldrogen,10,cmdtext);
    dcmd(drogen,6,cmdtext);
    dcmd(mats,4,cmdtext);
    dcmd(showlicenses,12,cmdtext);
    dcmd(mundtape,8,cmdtext);
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Mit einem Mundtape kannst du keine Befehle eingeben!");
    }


    new idx, cmd[40];
    cmd = strtok(cmdtext, idx);
    if(strcmp(cmdtext, "/open", true)==0)
    {
    if(IsACop(playerid))
    {
    SetTimer("FBIDOORTimer", 3000, 0);
    MoveObject (FBIDOOR,1294.15979004,554.91510010,1066.67248535,3);
    }
    return 1;
    }
    if(strcmp(cmd, "/blaulichtaus",true) == 0)
    {
    if(IsACop(playerid))
    {
    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;
    }
    if(strcmp(cmd, "/blaulichtan",true) == 0)
    {
    if(IsACop(playerid))
    {
    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) == 544)
    {
    //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,3,1.5,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) == 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.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) == 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;
    }
    }
    }
    return 1;
    }



    if(strcmp(cmdtext,"/schwingdich",true)==0)
    {
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3);
    print("Bot schwingt sich hahaha :D");
    return 1;
    }


    //Afksystem
    if(strcmp(cmd, "/afk", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    new length = strlen(cmdtext);
    while ((idx < length) && (cmdtext[idx] <= ' '))
    {
    idx++;
    }
    new offset = idx;
    new result[26];
    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
    {
    result[idx - offset] = cmdtext[idx];
    idx++;
    }
    result[idx - offset] = EOS;
    if(!strlen(result))
    {
    SendClientMessage(playerid, COLOR_GRAU, "FEHLER: /AFK [Grund]");
    return 1;
    }
    if(SpielerIstAFK[playerid] == false)
    {
    SpielerIstAFK[playerid] = true;
    TogglePlayerControllable(playerid, 0);
    AFK3DTextLabel[playerid] = Create3DTextLabel("Spieler ist AFK\nSekunden: 0", AFK_3DTextLabel, 30.0, 40.0, 50.0, 40.0, 0);
    Attach3DTextLabelToPlayer(AFK3DTextLabel[playerid], playerid, 0.0, 0.0, 0.7);
    format(astring,sizeof(astring),"~y~AFK Status~w~: ~w~Aktiviert~n~~y~Sekunden~w~: 0");
    TextDrawSetString(Textdraw0[playerid], astring);
    TextDrawShowForPlayer(playerid,Textdraw0[playerid]);
    TextDrawUpdate[playerid] = SetTimerEx("AFKTextDraw", 1000, 1, "i", playerid);
    SendClientMessage(playerid,COLOR_GRAU,"Du hast dich in den AFK-Modus begeben!");
    format(str, sizeof(str), "** %s ist nun abwesend. [Grund: %s] **", SpielerName(playerid), (result));
    SendClientMessageToAll(COLOR_WHITE, str);
    }
    else
    {
    SendClientMessage(playerid,COLOR_GRAU,"Du befindest dich schon im AFK-Modus!");
    return 1;
    }
    }
    return 1;
    }


    if(!strcmp(cmdtext, "/back", true))
    {
    if(IsPlayerConnected(playerid))
    {
    if(SpielerIstAFK[playerid] == true)
    {
    new str6[MAX_PLAYER_NAME+25];
    SpielerIstAFK[playerid] = false;
    AFKTimer[playerid] = 0;
    TogglePlayerControllable(playerid,1);
    TextDrawHideForPlayer(playerid,Textdraw0[playerid]);
    KillTimer(TextDrawUpdate[playerid]);
    Delete3DTextLabel(AFK3DTextLabel[playerid]);
    SendClientMessage(playerid,COLOR_GRAU,"Du bist aus dem AFK-Modus zurückgekehrt!");
    format(str6, sizeof(str6), "** %s ist nun wieder anwesend. **", SpielerName(playerid));
    SendClientMessageToAll(COLOR_WHITE, str6);
    }
    else
    {
    SendClientMessage(playerid,COLOR_GRAU,"Du befindest dich nicht im AFK-Modus!");
    return 1;
    }
    }
    return 1;
    }


    if(!strcmp(cmdtext, "/afklist", true))
    {
    new count = 0, stri[1024];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(GetPlayerName(i, pname,sizeof(pname)))
    {
    if(SpielerIstAFK[i] == true)
    {
    format(stri, sizeof(stri), "%s[%d]{99EE22}%s\n", stri, i, pname);
    count++;
    }
    }
    if(count == 0)
    {
    SendClientMessage(playerid, COLOR_GRAU, "Niemand befindet sich im AFK-Modus!");
    }else ShowPlayerDialog(playerid,DIALOG_AFKLIST,DIALOG_STYLE_LIST,"Folgende Spieler befinden sich im AFK-Modus:",stri,"Schließen","");
    return 1;
    }
    }
    if(!strcmp(cmdtext, "/maufträge", true))
    {
    new count = 0, stri[1024];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(GetPlayerName(i, pname,sizeof(pname)))
    {
    if(Auftragm[i] == 1)
    {
    format(stri, sizeof(stri), "%s[%d]{99EE22}%s\n", stri, i, pname);
    count++;
    }
    }
    if(count == 0)
    {
    SendClientMessage(playerid, COLOR_GRAU, "Es sind keine Aufträge verfügbar!");
    }else ShowPlayerDialog(playerid,DIALOG_AFKLIST,DIALOG_STYLE_LIST,"Folgende Spieler liegen auf dem Boden:",stri,"Schließen","");
    return 1;
    }
    }
    //Gangwar in STRCMO
    if(strcmp(cmdtext, "/angriff",true)==0)
    {
    new PlayerGangZone = IstspielerinderGangzone(playerid);
    new PlayerFraction;
    if(IsPlayerInFrac(playerid,4) || IsPlayerInFrac(playerid,5) || IsPlayerInFrac(playerid,6)
    || IsPlayerInFrac(playerid,7) || IsPlayerInFrac(playerid,10) || IsPlayerInFrac(playerid,12) || IsPlayerInFrac(playerid,13)
    || IsPlayerInFrac(playerid,15))
    {
    if(PlayerGangZone >= 0 && PlayerGangZone < 13)
    {
    if(GangZone[PlayerGangZone][gzOwner] != SInfo[playerid][pMember] && GangZone[PlayerGangZone][gzOwner] != SInfo[playerid][pLeader])
    {
    if(GangZone[PlayerGangZone][gzLock] == 0)
    {
    for(new i=4; i<25; i++)
    {
    if(IsPlayerInFrac(playerid,i))
    {
    PlayerFraction = i;
    }
    }
    GangZone[PlayerGangZone][gzAttacker] = PlayerFraction;
    printf("%d",PlayerFraction);
    GangZone[PlayerGangZone][gzAttacked] = 1;
    GangZone[PlayerGangZone][gzLock] = 22;
    GangZone[PlayerGangZone][gzAttackerdeaths] = 0;
    GangZone[PlayerGangZone][gzOwnerdeaths] = 0;
    new getsAttackedstring[128];
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    if(GangZone[PlayerGangZone][gzOwner] == SInfo[i][pMember] || GangZone[PlayerGangZone][gzOwner] == SInfo[i][pLeader]
    ||GangZone[PlayerGangZone][gzAttacker] == SInfo[i][pMember] || GangZone[PlayerGangZone][gzAttacker] == SInfo[i][pLeader])
    {
    format(getsAttackedstring, sizeof(getsAttackedstring), "GZ: Die GangZone %d wird angegriffen begib dich schnell zur Blinkenden Zone!",GangZone[PlayerGangZone][gzID]);
    SendClientMessage(i, COLOR_RED, getsAttackedstring);
    SendClientMessage(i, COLOR_RED, "Du solltest im Gangwar nicht sterben, anonsten bekommen die Gegner einen Punkt!");
    GangZoneFlashForPlayer(i,GangZone[PlayerGangZone][gzID],Gangzonenfarbe(playerid));
    }
    }


    new rand = random(sizeof(GangZoneAttackZeiten));
    SetTimerEx("GangZoneAttacked",GangZoneAttackZeiten[rand], false,"d",PlayerGangZone);
    }
    else
    {
    new Lockstring[128];
    format(Lockstring, sizeof(Lockstring), "GZ: Die GangZone ist noch etwa %d Minuten geschützt",GangZone[PlayerGangZone][gzLock]);
    SendClientMessage(playerid, COLOR_RED, Lockstring);
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_RED, "GZ: Diese GangZone gehört dir schon.");
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_RED, "GZ: Du bist in keiner Gangzone");
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_RED, "GZ: Dafür musst du in einer Gang/Mafia sein.");
    }
    return 1;
    }


    if(strcmp(cmdtext, "/cleargangzones",true)==0)
    {
    if(SInfo[playerid][pAdmin] >= 4)
    {
    for(new i; i<sizeof(GangZone); i++)
    {
    SetGangZoneOwner(i, 255);
    SendClientMessage(playerid, COLOR_RED, "GZ: Alle Gangzones resettet.");
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_RED, "GZ: Du bist kein 4 Admin !");
    }
    return 1;
    }



    Das hier und noch viel mehr ^^

  • Hattest du schon irgendwo
    dcmd(aduty, 5, cmdtext); geschrieben gehabt?


    Weil wie ich jetzt aus dem Zusammenhang erkennen kann hast du irgendwo schon dcmd(aduty, 5, cmdtext); definiert und musst nur noch das ins Script einfügen:
    dcmd_aduty(playerid,params[])
    {
    #pragma unused params
    new aname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, aname, sizeof(aname));
    if(SInfo[playerid][pAdmin] >= 1)
    {
    new string[128];
    if(IsOnDuty[playerid] == 0)
    {
    format(string,sizeof(string)," %s ist nun als Supporter angemeldet!",aname);
    SendClientMessageToAll(0xFF002DFF,string);
    SetPlayerColor(playerid,0xFF002DFF);
    Spielerlabel[playerid] = Create3DTextLabel("Supporter OnDuty", 0xFF002DFF, 0, 0, 1.0, 20.0,-1,0);
    Attach3DTextLabelToPlayer(Spielerlabel[playerid], playerid, 0.0, 0.0, 0.7);
    IsOnDuty[playerid] = 0;
    }
    else
    {
    format(string,sizeof(string)," %s ist nun als Supporter abgemeldet!",aname);
    SendClientMessageToAll(0xFF002DFF,string);
    SetPlayerColor(playerid, 0xAAAAAA00);
    Delete3DTextLabel(Spielerlabel[playerid]);
    IsOnDuty[playerid] = 1;
    }
    }
    return 1;
    }
    Hast du das schon irgendwo im Script?