IsPlayerInRangeOfPoint
#1

Hi,
I have this code to create an object at a player's position:
pawn Код:
GetPlayerPos(playerid, X,Y,Z);
CreateObject(objectid, X, Y, X, 90.0, 0.0, 0.0);
And then this to check if any player is at that position
pawn Код:
for(new c = 0; c < MAX_OBJECTS; c++)
{
    if(IsPlayerInRangeOfPoint(playerid, 5.0, Object[c][X], Object[c][Y], Object[c][Z])
    {
      //code
    }
But it always says the player is not in range of point even if it is.
Reply


Messages In This Thread
IsPlayerInRangeOfPoint - by Yvax - 29.10.2011, 20:18
Re: IsPlayerInRangeOfPoint - by Gamer_Z - 29.10.2011, 20:21
Re: IsPlayerInRangeOfPoint - by Yvax - 29.10.2011, 20:34
Re: IsPlayerInRangeOfPoint - by Gamer_Z - 29.10.2011, 20:40
Re: IsPlayerInRangeOfPoint - by Yvax - 29.10.2011, 20:45
Re: IsPlayerInRangeOfPoint - by Gamer_Z - 29.10.2011, 20:46
Re: IsPlayerInRangeOfPoint - by Yvax - 29.10.2011, 20:51
Re: IsPlayerInRangeOfPoint - by Gamer_Z - 29.10.2011, 21:02

Forum Jump:


Users browsing this thread: 1 Guest(s)