A vote map / gamemode script

I have a server that has a lot gamemodes on it, I wanted so people can vote for diffrent gamemodes and maps for that gamemode. Is there a script that does this, or can someone make it?

try fretta gamemodes.