cybersteel8 / sourcemods

A collection of my server mods for CS:GO
MIT License
1 stars 1 forks source link

Map/Gamechange require voting before changing #19

Open cybersteel8 opened 5 years ago

cybersteel8 commented 5 years ago

Gamble, [28.03.19 12:51]

Present a vote to players on the server and give them 20 seconds to reject it

Taylor Hicks, [28.03.19 12:51]

The only foolproof method I could see would to be some kind of voting system that can collect votes from people who are on the server as well as here.

Gamble, [28.03.19 12:51]

Make it a simple one vote from one person, nothing special

cybersteel8 commented 5 years ago

Implementation There is the inbuilt Map Vote functionality that is available in the GUI. Is that able to be called to take the reigns? Will that also work when voting to change the gamemode, or only the map?

Is a custom !map command required to adopt extra functionality of voting? If so, it'll require a config file with the list of maps to display, same as .map. Steal his code lol

Doesn't sourcemod come with some kind of voting mod you can look at for reference?

Design Most servers make do with a 1) Yes, 2) No with the classic menu. Put a message in chat stating the map and gamemode change request, and tell them to participate in the vote that's on screen?

Is it a "everyone has to press Yes" voting system? One person just has to say "no" and people who say "yes" don't have to actually vote? As in just polling and waiting for a "No" vote and if one isn't received in 20 seconds, the change happens?