Isplayerinrangeofpoint - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Isplayerinrangeofpoint (
/showthread.php?tid=611904)
Isplayerinrangeofpoint -
AdzeeH - 12.07.2016
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))
Re: Isplayerinrangeofpoint -
GangstaaSunny - 12.07.2016
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.
Re: Isplayerinrangeofpoint -
DavidBilla - 12.07.2016
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
Re: Isplayerinrangeofpoint -
Variable™ - 12.07.2016
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.