IsPlayerInRangeOfObject(playerid, objectid, Float:distance=5.0) { new Float:x, Float:y, Float:z; GetObjectPos(objectid, x, y, z); return (GetPlayerDistanceFromPoint(playerid, x, y, z) < distance); }