You simply set him to the position of the respawn point.
In case you have a player = me; in the beginning of the player action and you have the you pointer of the respawn point:

vec_set(you.x, player.x);

You can compare the distances with vec_dist.
You can search for the respawn points with ent_next.
You can give them an ID within a skill to find them among all the other entities.
To compare the distances you can set a varaible to a high value, and then compare its value to the dist of the respawn points, if the respawn points' distance is smaller, set the value to its dist and do this with each entity with the respawn point ID.