TextDraws gehen nicht weg..

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
  • Moin moin


    Ich erstelle mit einem Timer TextDraws, und loesche diese dann wieder mit einem Timer
    Jedoch verschwinden sie nicht, und daraus folgt, dass die sich ueberschneiden


    So sieht das ganze etwa aus




    Kommando welches einen Timer fuer Starter setzt.


    public Starter()
    {
    SetTimer("Vorstellung1",5000,false);
    }
    public Vorstellung1()
    {
    Textdraw01 = TextDrawCreate(164.000000,202.000000,"...");
    TextDrawAlignment(Textdraw01,0);
    TextDrawBackgroundColor(Textdraw01,0x000000ff);
    TextDrawFont(Textdraw01,2);
    TextDrawLetterSize(Textdraw01,0.699999,2.299933);
    TextDrawColor(Textdraw01,0xffffffff);
    TextDrawSetOutline(Textdraw01,1);
    TextDrawSetProportional(Textdraw01,1);
    TextDrawSetShadow(Textdraw01,1);
    TextDrawShowForAll(Textdraw01);
    SetTimer("Starter2",5000,false);
    }
    public Starter2()
    {


    TextDrawHideForPlayer(9,Textdraw01);
    TextDrawDestroy(Textdraw01);
    SetTimer("Vorstellung2",5000,false);
    }
    public Vorstellung2()
    {


    PUB = TextDrawCreate(164.000000,202.000000,"...");
    TextDrawAlignment(PUB,0);
    TextDrawBackgroundColor(PUB,0x000000ff);
    TextDrawFont(PUB,2);
    TextDrawLetterSize(PUB,0.699999,2.299933);
    TextDrawColor(PUB,0xffffffff);
    TextDrawSetOutline(PUB,1);
    TextDrawSetProportional(PUB,1);
    TextDrawSetShadow(PUB,1);
    TextDrawShowForAll(PUB);
    SetTimer("Starter3",5000,false);

    }
    public Starter3()
    {
    SetTimer("Vorstellung3",5000,false);
    TextDrawHideForAll(PUB);
    }
    public Vorstellung3()
    {

    PUB1 = TextDrawCreate(164.000000,202.000000,"...");
    TextDrawAlignment(PUB1,0);
    TextDrawBackgroundColor(PUB1,0x000000ff);
    TextDrawFont(PUB1,2);
    TextDrawLetterSize(PUB1,0.699999,2.299933);
    TextDrawColor(PUB1,0xffffffff);
    TextDrawSetOutline(PUB1,1);
    TextDrawSetProportional(PUB1,1);
    TextDrawSetShadow(PUB1,1);
    TextDrawShowForAll(PUB1);
    SetTimer("Starter4",5000,false);
    }
    public Starter4()
    {
    SetTimer("Vorstellung4",5000,false);
    TextDrawHideForAll(PUB1);
    }
    public Vorstellung4()
    {

    PUB2 = TextDrawCreate(164.000000,202.000000,"...");
    TextDrawAlignment(PUB2,0);
    TextDrawBackgroundColor(PUB2,0x000000ff);
    TextDrawFont(PUB2,2);
    TextDrawLetterSize(PUB2,0.699999,2.299933);
    TextDrawColor(PUB2,0xffffffff);
    TextDrawSetOutline(PUB2,1);
    TextDrawSetProportional(PUB2,1);
    TextDrawSetShadow(PUB2,1);
    TextDrawShowForAll(PUB2);
    SetTimer("Starter5",5000,false);


    }
    public Starter5()
    {
    SetTimer("Sonst1",5000,false);
    TextDrawHideForAll(PUB2);
    }
    public Sonst1()
    {
    PUB3 = TextDrawCreate(164.000000,202.000000,"...");
    TextDrawAlignment(PUB3,0);
    TextDrawBackgroundColor(PUB3,0x000000ff);
    TextDrawFont(PUB3,2);
    TextDrawLetterSize(PUB3,0.699999,2.299933);
    TextDrawColor(PUB3,0xffffffff);
    TextDrawSetOutline(PUB3,1);
    TextDrawSetProportional(PUB3,1);
    TextDrawSetShadow(PUB3,1);
    TextDrawShowForAll(PUB3);
    SetTimer("Starter6",5000,false);
    }
    public Starter6()
    {
    SetTimer("Sonst2",5000,false);
    TextDrawHideForAll(PUB3);
    }
    public Sonst2()
    {
    PUB4 = TextDrawCreate(164.000000,202.000000,"..");
    TextDrawAlignment(PUB4,0);
    TextDrawBackgroundColor(PUB4,0x000000ff);
    TextDrawFont(PUB4,2);
    TextDrawLetterSize(PUB4,0.699999,2.299933);
    TextDrawColor(PUB4,0xffffffff);
    TextDrawSetOutline(PUB4,1);
    TextDrawSetProportional(PUB4,1);
    TextDrawSetShadow(PUB4,1);
    TextDrawShowForAll(PUB4);
    SetTimer("Starter7",5000,false);


    }
    public Starter7()
    {
    SetTimer("Starter",5000,false);
    TextDrawHideForAll(PUB4);
    }




  • Beitrag von FileZilla ()

    Dieser Beitrag wurde gelöscht, Informationen über den Löschvorgang sind nicht verfügbar.
  • Also das ganze was du da geschrieben hast, sieht für mich ziemlich umständlich aus.


    Machs nochmal und schreib es ordentlich, was ich leider nicht verstehe warum machst du:
    TextDrawShowForAll(Textdraw01);


    Erstell die Textdraws unter OneGameModeInt z.B.


    Und zeig sie dann einfach beim Regestieren oder wo auch immer mit der Funktion "TextDrawShowForPlayer" an.


    Nachdem der Timer abgelaufen ist, "TextDrawHideForPlayer" weil sonst bleibt das TextDraw ist ja klar.


    //Wenn du des so probiert hast, meld dich nochmal hier dann helfe ich dir.


  • Also ich will einen Textdraw fuer 5 Sekunden anzeigen, dann 5 Sekunden kein Textdraw, und dann nach 5 Sekunden der naechste Textdraw, und immer so weiter



    public Starter()
    {
    SetTimer("Vorstellung1",5000,false);
    }
    public Vorstellung1()
    {

    TextDrawShowForAll(Textdraw01);
    SetTimer("Starter2",5000,false);
    }
    public Starter2()
    {


    TextDrawHideForPlayer(9,Textdraw01);
    TextDrawDestroy(Textdraw01);
    SetTimer("Vorstellung2",5000,false);
    }
    public Vorstellung2()
    {



    TextDrawShowForAll(PUB);
    SetTimer("Starter3",5000,false);

    }
    public Starter3()
    {
    SetTimer("Vorstellung3",5000,false);
    TextDrawHideForAll(PUB);
    }
    public Vorstellung3()
    {


    TextDrawShowForAll(PUB1);
    SetTimer("Starter4",5000,false);
    }
    public Starter4()
    {
    SetTimer("Vorstellung4",5000,false);
    TextDrawHideForAll(PUB1);
    }
    public Vorstellung4()
    {


    TextDrawShowForAll(PUB2);
    SetTimer("Starter5",5000,false);


    }
    public Starter5()
    {
    SetTimer("Sonst1",5000,false);
    TextDrawHideForAll(PUB2);
    }
    public Sonst1()
    {

    TextDrawShowForAll(PUB3);
    SetTimer("Starter6",5000,false);
    }
    public Starter6()
    {
    SetTimer("Sonst2",5000,false);
    TextDrawHideForAll(PUB3);
    }
    public Sonst2()
    {

    TextDrawShowForAll(PUB4);
    SetTimer("Starter7",5000,false);


    }
    public Starter7()
    {
    SetTimer("Starter",5000,false);
    TextDrawHideForAll(PUB4);
    }

    2 Mal editiert, zuletzt von Sub Royal ()


  • Muss ich dann mit SetTimerEx arbeiten wegen der playerid?

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen