A table where you can choose your spawn point

Hello
im looking for a script which has a table with the points last position and for example mp and sandy and let you spawn there. Does anyone know what I should do?