SA-MP Forums Archive
Help with IsPlayerInRangeOfPoint. and IsPlayerInArea - 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: Help with IsPlayerInRangeOfPoint. and IsPlayerInArea (/showthread.php?tid=271207)



Help with IsPlayerInRangeOfPoint. and IsPlayerInArea - jerry1996 - 23.07.2011

Well, I need a bit help. I have 6 of these commands, But I dont know what they're doing. Can anyone explain me What this is? I can't find the anwser on ******...

if(IsPlayerInRangeOfPoint(playerid,1.0,403.8266,-2088.7598,7.8359) || IsPlayerInRangeOfPoint(playerid,1.0,398.7553,-2088.7490,7.8359))
{

(IsPlayerInArea(playerid, 2550.0454, 2513.7588, 1583.3751, 1553.0753) && pz <= 9.4171)


Re: Help with IsPlayerInRangeOfPoint. and IsPlayerInArea - RSX - 23.07.2011

Your given context means :
if :
1.Player is within the radius of a certain point (1.0 float coords ~ 1m)
or if :
2.Player is within the radius of another point

Read sa-mp wiki about the functions.

Second code means :
if player is within the X;Y box, and if he's below a certain height.