AutoHotKey Autozoll Problem

  • Hey ich möchte auf Another Life einen Autozoll erstellen, allerdings habe ich ein Problem.
    Beim Compilen bekomme ich KEINEN Fehler, aber trodzdem macht er den Zoll nicht auf, woran liegt das?
    Schnipsel:


  • Hier hast du einen mit allen Zolls wo es gibt:


    #Persistent
    SetTimer, AutoZoll, 100
    return

    AutoZoll:
    IfWinNotActive, GTA:SA:MP
    return
    if(IsPlayerInRangeOfPoint(1750.162, 510.399, 29.660, 30))
    {
    SendChat("/zoll")
    Sleep, 100
    SendChat("/zoll")
    Sleep, 7000
    }
    else if(IsPlayerInRangeOfPoint(1740.987, 514.771, 28.317, 30))
    {
    SendChat("/zoll")
    Sleep, 100
    SendChat("/zoll")
    Sleep, 7000
    }
    else if(IsPlayerInRangeOfPoint(1731.915, 517.437, 28.348, 30))
    {
    SendChat("/zoll")
    Sleep, 100
    SendChat("/zoll")
    Sleep, 7000
    }
    else if(IsPlayerInRangeOfPoint(1723.319, 520.559, 28.334, 30))
    {
    SendChat("/zoll")
    Sleep, 100
    SendChat("/zoll")
    Sleep, 7000
    }
    else if(IsPlayerInRangeOfPoint(471.601, 534.242, 20.229, 30))
    {
    SendChat("/zoll")
    Sleep, 100
    SendChat("/zoll")
    Sleep, 7000
    }
    else if(IsPlayerInRangeOfPoint(478.949, 539.065, 20.204, 28))
    {
    SendChat("/zoll")
    Sleep, 100
    SendChat("/zoll")
    Sleep, 7000
    }
    else if(IsPlayerInRangeOfPoint(-153.919, 404.307, 13.385, 30))
    {
    SendChat("/zoll")
    Sleep, 100
    SendChat("/zoll")
    Sleep, 7000
    }
    else if(IsPlayerInRangeOfPoint(-162.548, 406.530, 13.435, 30))
    {
    SendChat("/zoll")
    Sleep, 100
    SendChat("/zoll")
    Sleep, 7000
    }
    else if(IsPlayerInRangeOfPoint(-1350.367, 895.862, 48.000, 28))
    {
    SendChat("/zoll")
    Sleep, 100
    SendChat("/zoll")
    Sleep, 7000
    }
    else if(IsPlayerInRangeOfPoint(-1345.071, 890.407, 47.999, 30))
    {
    SendChat("/zoll")
    Sleep, 100
    SendChat("/zoll")
    Sleep, 7000
    }
    else if(IsPlayerInRangeOfPoint(-1338.380, 883.559, 48.004, 28))
    {
    SendChat("/zoll")
    Sleep, 100
    SendChat("/zoll")
    Sleep, 7000
    }
    else if(IsPlayerInRangeOfPoint(-1333.010, 878.189, 48.004, 28))
    {
    SendChat("/zoll")
    Sleep, 100
    SendChat("/zoll")
    Sleep, 7000
    }
    else if(IsPlayerInRangeOfPoint(-2667.669, 1273.903, 59.737, 35))
    {
    SendChat("/zoll")
    Sleep, 100
    SendChat("/zoll")
    Sleep, 7000
    }
    else if(IsPlayerInRangeOfPoint(-2677.368, 1273.899, 56.737, 35))
    {
    SendChat("/zoll")
    Sleep, 100
    SendChat("/zoll")
    Sleep, 7000
    }
    else if(IsPlayerInRangeOfPoint(-2686.425, 1273.625, 56.737, 35))
    {
    SendChat("/zoll")
    Sleep, 100
    SendChat("/zoll")
    Sleep, 7000
    }
    else if(IsPlayerInRangeOfPoint(-2695.429, 1273.637, 56.737, 35))
    {
    SendChat("/zoll")
    Sleep, 100
    SendChat("/zoll")
    Sleep, 7000
    }
    else if(IsPlayerInRangeOfPoint(-970.769, -333.884, 37.991, 35))
    {
    SendChat("/zoll")
    Sleep, 100
    SendChat("/zoll")
    Sleep, 7000
    }
    else if(IsPlayerInRangeOfPoint(-962.042, -335.884, 37.974, 35))
    {
    SendChat("/zoll")
    Sleep, 100
    SendChat("/zoll")
    Sleep, 7000
    }
    else if(IsPlayerInRangeOfPoint(-72.705, -877.675, 16.368, 35))
    {
    SendChat("/zoll")
    Sleep, 100
    SendChat("/zoll")
    Sleep, 7000
    }
    else if(IsPlayerInRangeOfPoint(-64.125, -881.827, 16.365, 35))
    {
    SendChat("/zoll")
    Sleep, 100
    SendChat("/zoll")
    Sleep, 7000
    }
    else if(IsPlayerInRangeOfPoint(52.165, -1536.423, 6.634, 35))
    {
    SendChat("/zoll")
    Sleep, 100
    SendChat("/zoll")
    Sleep, 7000
    }
    else if(IsPlayerInRangeOfPoint(53.688, -1527.204, 6.983, 35))
    {
    SendChat("/zoll")
    Sleep, 100
    SendChat("/zoll")
    Sleep, 7000
    }
    else if(IsPlayerInRangeOfPoint(109.637, -1277.525, 15.908, 29))
    {
    SendChat("/zoll")
    Sleep, 100
    SendChat("/zoll")
    Sleep, 7000
    }
    else if(IsPlayerInRangeOfPoint(104.009, -1270.115, 15.907, 29))
    {
    SendChat("/zoll")
    Sleep, 100
    SendChat("/zoll")
    Sleep, 7000
    }
    else if(IsPlayerInRangeOfPoint(95.396, -1256.300, 15.934, 29))
    {
    SendChat("/zoll")
    Sleep, 100
    SendChat("/zoll")
    Sleep, 7000
    }
    else if(IsPlayerInRangeOfPoint(90.190, -1248.970, 15.946, 29))
    {
    SendChat("/zoll")
    Sleep, 100
    SendChat("/zoll")
    Sleep, 7000
    }
    return


    So sollte es gehen.
    Musst halt nurnoch einfügen das es was in den Chat schreibt wenn du das möchstest :)

  • Koordinaten sind richtig, funktioniert immernoch nicht, hiernocheinmal die LS-SF Koordinaten:


    PHP
    AddPlayerClass(287,66.1893,-1526.9271,4.8812,267.7161,0,0,0,0,0,0); // Zoll LS-SF 
    AddPlayerClass(287,57.5284,-1538.5444,5.1006,256.8276,0,0,0,0,0,0); // Zoll LS-SF
  • Dann musst du mal richtig hinschauen -.-


  • Dann musst du mal richtig hinschauen -.-



    Pardon, habe die Skinid als Koordinate wahrgenommen.
    Ich weiß zwar nicht, worauf sich folgende Aussage bezieht, aber dies könnte eventuell der Grund sein, warum der Zoll nicht geöffnet wird:

    Zitat

    IsPlayerInRangeOfPoint gibt an ob der Spieler in Reichweite zu einem Punkt ist.
    Die Parameter X, Y und Z stellen den Punkt da ob geprüft werden soll ob der Spieler in Reichweite ist oder nicht.
    Der Radius gibt dabei die Größe an.
    Kommazahlen werden ab Version 0.4 unterstützt.

    Wäre aber ziemlich unvorteilhaft, nur steht dort nicht genau beschrieben, ob die Koordinaten oder die Reichweite gemeint ist.
    //Edit: Okay, bezieht sich auf die Reichweite.


    Die einzige Möglichkeit, warum es nicht funktioniert ist, dass die Reichweite zum Öffnen des Zolls viel geringer als 30 ist.