how can i makeing a voting system for TTT?

i want to make a voting system so you can vote for the next map when its about to end but it wont work for me can some one help?

Enjoy.