Wondering how to add the feature to vote silence someone by typing /vote silence "player"
I am only aware of the default /vote kick include suspend commands. How would I go about adding the silence feature?
P.S. I already have a vote folder working to include files from my CP which does work.
Also I noticed this topic but it doesn't say how it would be added. I am guessing development maybe?
Vote to Silence Feature
Re: Vote to Silence Feature
Can't you just do /vote command silence inw
- INW
- Reverse Outside Corner Grinder
- Posts: 1950
- Joined: Tue Jul 07, 2009 4:10 pm
- Location: Charlotte, NC, USA
Re: Vote to Silence Feature
hmmm...that seems like a plausible idea. I know G5 has the command stuff or used to in his server.
How would I got about doing that? Make a command file in my vote folder for commands like silence?
How would I got about doing that? Make a command file in my vote folder for commands like silence?
Re: Vote to Silence Feature
I wasn't aware you needed a folder for this, it's just limited by the user level of the submitter, if the command even has restrictions on what auth level can execute it. Although there might be a minimum level needed to use /vote command
Over to someone more informed...
Over to someone more informed...
Re: Vote to Silence Feature
Heh I think that admins shouldn't be able to silence people* and I deff believe that you should be able to start a poll to silence someone.
The silence menu is there use it.
* I have silenced people in the past but I already admit that if I have power I am going to abuse it that's why I never ask for mod.
The silence menu is there use it.
* I have silenced people in the past but I already admit that if I have power I am going to abuse it that's why I never ask for mod.
Re: Vote to Silence Feature
It's not the always access level of the vote caller. If the vote caller has at least the access level ACCESS_LEVEL_VOTE_COMMAND, a successful vote will execute the command at ACCESS_LEVEL_VOTE_COMMAND_EXECUTE or the access level of the vote caller, whatever is better. The following looks safe:
And then just say "/vote command SILENCE <player name>".
Obvious problem, of course: the command is only interpreted and executed after it's accepted. A name change can easily dodge it.
Code: Select all
ACCESS_LEVEL_VOTE_COMMAND_EXECUTE 2
ACCESS_LEVEL_VOTE_COMMAND 15
Obvious problem, of course: the command is only interpreted and executed after it's accepted. A name change can easily dodge it.
- INW
- Reverse Outside Corner Grinder
- Posts: 1950
- Joined: Tue Jul 07, 2009 4:10 pm
- Location: Charlotte, NC, USA
Re: Vote to Silence Feature
Thanks but that's not goodZ-Man wrote:Obvious problem, of course: the command is only interpreted and executed after it's accepted. A name change can easily dodge it.
Re: Vote to Silence Feature
In that case, look up the code for /vote kick (in eVoter.cpp, the 'if command == "kick"' line starts it), copy (refactoring common bits first), adapt, submit patch
- INW
- Reverse Outside Corner Grinder
- Posts: 1950
- Joined: Tue Jul 07, 2009 4:10 pm
- Location: Charlotte, NC, USA
Re: Vote to Silence Feature
Oh yes..exactly what i have a major in Z-Man..thanks!
(:
(: