SA-MP Forums Archive
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=601325)



IsPlayerInRangeOfPoint? - [eLg]elite - 19.02.2016

How far is one unit? I've searched everywhere but I can't find an answer.


Re: IsPlayerInRangeOfPoint? - Joron - 19.02.2016

Quote:
(playerid, Float:range, Float : x, Float:y, Float:z)
Quote:
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438 ))
{

https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint


Re: IsPlayerInRangeOfPoint? - saffierr - 19.02.2016

What do you exactly mean?


Re: IsPlayerInRangeOfPoint? - sammp - 19.02.2016

1 unit is a meter, seeing as GetPlayerDistanceFromPoint is measured in meters.


Re: IsPlayerInRangeOfPoint? - Joron - 19.02.2016

What do u mean really?


Re: IsPlayerInRangeOfPoint? - sammp - 19.02.2016

He's asking the units that IsPlayerInRangeOfPoint is measured in, which is metres.


Re: IsPlayerInRangeOfPoint? - [eLg]elite - 19.02.2016

Код:
if(IsPlayerInRangeOfPoint(playerid, 1, x, y, z))
{
    SetPlayerHealth(playerid, health);
}
How far away can a person be for this to effect them?


Re: IsPlayerInRangeOfPoint? - sammp - 19.02.2016

@JacobTr, a person would be 1 metre away from the point for it to affect them.


Re: IsPlayerInRangeOfPoint? - [eLg]elite - 19.02.2016

Quote:
Originally Posted by sammp
Посмотреть сообщение
He's asking the units that IsPlayerInRangeOfPoint is measured in, which is metres.
Oh okay, thank you.