I'm trying to make AHK script that will check my position and run a command if I'm in the range of the point. I can't seem to get it work. This is the code I have so far. Should I use while? Any help would be great!
Code:
#include SAMP.ahk
!f::
StopF :=
Loop,
{
If (StopF = "")
{
sendinput,{esc}t/fish{enter}
sendinput,{esc}t/myfish{enter}
Sleep 11200
}
}
if(IsPlayerInRangeOfPoint(2143.3135,-119.9903,-0.0992,5.0)){
sendinput,{esc}t/sell{enter}
sleep 2000
}
RETURN
^f::
StopF := 1
Last edited: