Finding if player is within x of set Pos - Mental Block!
#1

Hi guys,

I can't for the life of me figure out a simple way how to check if a player's Pos is within say 10 of a Pos in an Array. Any Ideas?

Ryan
Reply
#2

Use IsPlayerInRangeOfPoint:
pawn Код:
if( IsPlayerInRangeOfPoint( playerid, 10.0, X, Y, Z ) )
{
    SendClientMessage( playerid, -1, "Hey !" );
}
Reply
#3

you have array of X cord ? and you want to check if is player close to any of those points ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)