new Float:x,Float:y,Float:z; GetDynamicObjectPos(Object[1],x,y,z); if(if(IsPlayerInRangeOfPoint(i,1,xy,z)){ //Object near the player }