SAMP UDF (isPlayerInRangeofPoint issue)

Ask gaming related questions (AHK v1.1 and older)
NF22
Posts: 1
Joined: 23 Feb 2020, 23:58

SAMP UDF (isPlayerInRangeofPoint issue)

24 Feb 2020, 00:13

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: Select all

#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
So far only the first part of the code works. It doesnt go to the second IF function that checks if im in a range.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 96 guests