How to see if someone is at a certain location?
#1

PHP код:
        if(IsPlayerInRangeOfPoint(playerid,700,-1952.4735,661.1452,118.8698))
            {
                
//mycode
                
return 1;
            } 
So I have the code and its working when I use it with a command. But I want it, when he actually comes to that place, the code would work.. Any suggetions?
Reply
#2

Use timers or OnPlayerEnterDynamicArea of Streamer plugin.
Reply
#3

I see.. Thank you I'll try.
Reply
#4

lowe thr range.
Reply
#5

Quote:
Originally Posted by TaLhA XIV
Посмотреть сообщение
lowe thr range.
How would that help? xD
Reply
#6

That is because he has too much high range and he is asking for a certain spot or place.-_-
Reply
#7

Set a timer of 1 second to check if player is close to that point, or use OnPlayerUpdate calback.
Reply
#8

Quote:
Originally Posted by TaLhA XIV
Посмотреть сообщение
That is because he has too much high range and he is asking for a certain spot or place.-_-
Oh, I know what you're thinking about now, but actually he was wondering on how to make it so the function got called directly when he get into the place so he don't have to type the command for it to work, not that it works in a to big range. But i understand that you understood it as the command worked to long away from the spot
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)