SA-MP Forums Archive
IsPlayerInRangeOfPoint?explain .. :( - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: IsPlayerInRangeOfPoint?explain .. :( (/showthread.php?tid=162605)



IsPlayerInRangeOfPoint?explain .. :( - Rocky Balboa - 24.07.2010

IsPlayerInRangeOfPoint(playerid, Float:range, Float, Float:y, Float:z);

Can anyone explain this to me ? well i know x , y , z .. but what is the range for ? is it like if u get x and y , like gangzones ? ..


Re: IsPlayerInRangeOfPoint?explain .. :( - Toni - 24.07.2010

Float:Range = The radius, as in how large the circle is.

Lets say you put a circle at the pos 0, 0, 0.

Then make the range maybe 150. So anyone in the range 150 of 0, 0, 0 will be shot (example).


Re: IsPlayerInRangeOfPoint?explain .. :( - Rocky Balboa - 24.07.2010

ah ok , thanks .. i checked the samp wiki and it said hte same ... so it is like a circle .. am i right ?


Re: IsPlayerInRangeOfPoint?explain .. :( - Toni - 24.07.2010

Yes, if its a radius, its a circle.


Re: IsPlayerInRangeOfPoint?explain .. :( - Rocky Balboa - 24.07.2010

Ok , thanks .. now i can complete my script .