IsPlayerInRangeOfPoint?explain .. :(
#1

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 ? ..
Reply
#2

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).
Reply
#3

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

Yes, if its a radius, its a circle.
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)