Ich habe es jetzt so
Gui, Show, w550 h350, hi
#IfWinActive, GTA:SA:MP;
#Include SAMP.ahk
#UseHook
SetTimer, AutoTeileF,1000
t::
Suspend On
SendInput t
Hotkey, Enter, On
Hotkey, Escape, On
Hotkey, t, Off
return
NumpadEnter::
Enter::
Suspend Permit
Suspend Off
SendInput {Enter}
Hotkey, t, On
Hotkey, Enter, Off
Hotkey, Escape, Off
return
Escape::
Suspend Permit
Suspend Off
SendInput {Escape}
Hotkey, t, On
Hotkey, Enter, Off
Hotkey, Escape, Off
return
i::
SendInput t/inventar{enter}
return
AutoTeileF:
if(IsPlayerInRangeOfPoint2D(2348.1409,-2302.3579, 3.5)) //KOORDINATE
{
SendChat("/paketeinladen 5")
SendInput ttest{enter}
Sleep, 120000
}
if(IsPlayerInRangeOfPoint2D(-1857.7402,-1618.9537, 3.5)) //KOORDINATE
{
SendChat("/paketentladen")
Sleep, 120000
}
return
Alles anzeigen
Wenn ich an dem Punkt bin schreibt er auch nichts also geht er wahrscheinlich gar nicht. Aber sind das den die richtigen Koordinaten also x und y.
AddStaticVehicle(451,2348.1409,-2302.3579,13.2537,136.8884,86,86); // paketeinladen
AddStaticVehicle(451,-1857.7402,-1618.9537,21.6064,30.7872,86,86); // paketentladen