Isplayerinrangeofpoint
#1

Hey,

I'm making it so an /arrest point is inside an interior, but I want the arrest point to be at a spot and near it only but I can do /arrest in the whole interior which I don't want to do.

Is this the lowest value of meters or can I change it to be a smaller distance to /arrest?

Код:
(IsPlayerInRangeOfPoint(playerid, 1.0, 268.4126, 82.3640, 1001.0391))
Reply
#2

Hello AdzeeH,
you can also use "0.5" or lower.

But i cant recommend it because its near to undoable to stay right on this position.
Reply
#3

You could use streamer's function

CreateDynamicRectangle and use IsPlayerInDynamicArea which is more comfortable

I believe streamer has functions to create circles too if that is what you're looking for
Reply
#4

Quote:
Originally Posted by AdzeeH
Посмотреть сообщение
Hey,

I'm making it so an /arrest point is inside an interior, but I want the arrest point to be at a spot and near it only but I can do /arrest in the whole interior which I don't want to do.

Is this the lowest value of meters or can I change it to be a smaller distance to /arrest?

Код:
(IsPlayerInRangeOfPoint(playerid, 1.0, 268.4126, 82.3640, 1001.0391))
Yes, you can change it to be a smaller distance.

Example:
Код:
(IsPlayerInRangeOfPoint(playerid, 0.7, 268.4126, 82.3640, 1001.0391))
You can still decrease it, but I think 0.7 is enough.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)