IsPlayerInRangeOfPoint help - 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 help (
/showthread.php?tid=644673)
IsPlayerInRangeOfPoint help -
Arbico - 12.11.2017
Guys, I know how to use the IsPlayerInRangeOfPoint
but it tells me to put a radius, is that radius in meter or kilometer or what?
Can you help me?
Re: IsPlayerInRangeOfPoint help -
AbyssMorgan - 12.11.2017
Meter and kilometer not exist in samp...
Radius is float.
Re: IsPlayerInRangeOfPoint help -
aoky - 12.11.2017
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
Doesn't really say, but 1 is standing right on the location you've chosen. That's how I think of it. It's a float.
Here is an example where he would have to stand right on the X Y Z.
PHP код:
if (!strcmp("/stadium", cmdtext))
{
if (IsPlayerInRangeOfPoint(playerid, 1.0, 2695.6880, -1704.6300, 11.8438))
{
SendClientMessage(playerid,0xFFFFFFFF,"You are near the stadium entrance!");
}
return 1;
}
Re: IsPlayerInRangeOfPoint help -
OneDay - 12.11.2017
GTA units. 1 unit is almost 1 metre, but not exact.