Take a look at mapsmenu.sma and look at the function displayVoteMapsMenu as it contains this type of information. There are plenty of plugins that use menus to reference - just look around. Most of them are probably easier to read than mapsmenu :-).
Slmclarengt
__________________
But we don’t beat the Reaper by living longer. We beat the Reaper by living well. -Dr. Randy Pausch, R.I.P.