neatek / GameVoting

A simple plugin written in SourcePawn. Allows you to manage players on servers with the punishment of certain players through a general vote on the server.
https://forums.alliedmods.net/showthread.php?t=193643
GNU General Public License v3.0
27 stars 14 forks source link

Restrict starting a vote to flag #18

Closed PetriVukan closed 7 years ago

PetriVukan commented 7 years ago

Hi,

It would be cool to have a feature where only certain players, with flag "r" for example, are allowed to start a vote. But everyone else can vote yes or no, even if they do not have the flag "r".

So for example: a VIP with the flag "r" types !votemute and selects a player. Players are then prompted with a window:

_Do you want to mute "example"?

  1. Yes
  2. No_

They can press 1 or 2 inorder to vote.

neatek commented 7 years ago

It's a good idea. Thank you!

PetriVukan commented 7 years ago

Thank you for taking your time to code this great plugin!

neatek commented 7 years ago

Yep, 1.8.3 is now here! but this feature will be soon.

neatek commented 7 years ago

Added in current version. check it!

gamevoting_startvote_flag", "" // "Who can start voting for ban or something, set empty for all players (def:a) gamevoting_startvote_delay", "20" // Delay between public votes in seconds (def:20)