Help with IsPlayerInRangeOfPoint. and IsPlayerInArea
#1

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)
Reply
#2

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)