This adds an int field to the Curve Parameter node that gives the local index for a control point on it's parentChange the Curve Parameter Node to Spline Parameter and add an Index output that contains the index of each control point on the given spline.
{F11826599}{F12028166}