IsPlayerInRangeOfPoint help
#1

Guys, I know how to use the IsPlayerInRangeOfPoint
but it tells me to put a radius, is that radius in meter or kilometer or what?
Can you help me?
Reply
#2

Meter and kilometer not exist in samp...
Radius is float.
Reply
#3

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

Doesn't really say, but 1 is standing right on the location you've chosen. That's how I think of it. It's a float.

Here is an example where he would have to stand right on the X Y Z.
PHP код:
if (!strcmp("/stadium"cmdtext))
{
    if (
IsPlayerInRangeOfPoint(playerid1.02695.6880, -1704.630011.8438)) 
    {
        
SendClientMessage(playerid,0xFFFFFFFF,"You are near the stadium entrance!");
    }
 
    return 
1;

Reply
#4

GTA units. 1 unit is almost 1 metre, but not exact.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)