AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Mute Voting 1.4 (https://forums.alliedmods.net/showthread.php?t=74869)

Jon 07-26-2008 11:25

Mute Voting 1.4
 
1 Attachment(s)
Mute Voting


Description

This plugin allows players to start votes to mute other players. However, it can be changed to so only admins can start votes. If alltalk isn't enabled you can't start votes against players in other teams and votes will be internal in teams.


Cvars (with default values)

mv_immunity 1 - Votes can't be started against admins

mv_cooldown 120.0 - How long you have to wait before starting a new vote (after you started one)

mv_duration 480.0 - How long a player will be muted if the vote succeed (seconds).

mv_mutechat 0 - If muted players shouldn't be able to use chat either.

mv_adminonly 0 - If only admins can start muting votes.


Commands

/votemute or /mutevote - Open player menu to start a vote

.

AntiBots 07-26-2008 11:29

Re: Vote Mute 1.0
 
Exelent this :D Is very good for servers that player put music.

PvtSmithFSSF 07-26-2008 11:29

Re: Vote Mute 1.0
 
By the way it doesn't even compile. Lol.

koss_4life 07-26-2008 11:31

Re: Vote Mute 1.0
 
Do you know how many hours I've been idle @ this website to get this plugin?? :P I've been updated my request-thread about this plugin for 20 hours now and finally! :D

You're my hero Jon! Will use this for my server direct!

+ Karma

Jon 07-26-2008 11:33

Re: Vote Mute 1.0
 
Quote:

Originally Posted by PvtSmithFSSF (Post 659135)
By the way it doesn't even compile. Lol.

Rofl, typo. Fixed :oops:

PvtSmithFSSF 07-26-2008 11:33

Re: Vote Mute 1.0
 
Cool it sounds good :)
Has it been tested? Does it work?

Jon 07-26-2008 11:36

Re: Vote Mute 1.0
 
Quote:

Originally Posted by PvtSmithFSSF (Post 659143)
Cool it sounds good :)
Has it been tested? Does it work?

I tested it on my server with bots just to see if the messages work (and added additional debug ones myself). The mute function (SetClientListening) itself should work as it does in my other plugin.

koss_4life 07-26-2008 13:53

Re: Vote Mute 1.0
 
It works like a charm! :D :D :D :D

I've tested it now on my test-server with some friends and this is a very useful plugin ;)

Im gonna use it on my "real" server and there are always 32 ppl fooling around in microphone so this is really useful! :) Credz to Jon!

Here is some screenshots how it looks like:

1. You make a vote against the one who is trying to be funny through the mic
http://data.fuskbugg.se/skalman01/VC_OPTIONS.JPG

2. A vote starts
http://data.fuskbugg.se/skalman01/VC_MUTE.JPG

3. Everyone on the server avoid his immature voice! :D
http://data.fuskbugg.se/skalman01/VC_VOTED.JPG

Jon 07-26-2008 14:11

Re: Vote Mute 1.0
 
Thanks, added the screenshots to the main post. :)

S.W.A.T Slix 07-26-2008 15:18

Re: Vote Mute 1.0
 
wow this is definitely a really good plugin. Good job!

EDIT: Do admins have immunity?

koss_4life 07-26-2008 17:08

Re: Vote Mute 1.0
 
I found some bug :( At the beginning of the map, you can vote but at the end of the map you cannot vote any more , I got this message:

http://data.fuskbugg.se/skalman01/VM_BUGG.JPG


My server.cfg:

Code:

//votemute

vm_enable "1"
vm_neededpercent "51"
vm_delay "0"
vm_mutetime "9999999"
vm_showvotes "1"
vm_mutednovote "0"

Debug - errorlog

Code:

L 07/25/2008 - 22:59:57: [AMXX] Displaying debug trace (plugin "votemute.amxx")
L 07/25/2008 - 22:59:57: [AMXX] Run time error 11: divide
L 07/25/2008 - 22:59:57: [AMXX]    [0] votemute.sma::Result (line 213)

Otherwise, great plugin! ;):up:

Styles 07-26-2008 17:14

Re: Vote Mute 1.0
 
Fix the bug ;) maybe add some Multi Language Support? :)

Jon 07-27-2008 05:52

Re: Vote Mute 1.0
 
Quote:

Originally Posted by S.W.A.T Slix (Post 659271)
wow this is definitely a really good plugin. Good job!

EDIT: Do admins have immunity?

I'll make that.

Quote:

Originally Posted by styles (Post 659351)
Fix the bug ;) maybe add some Multi Language Support? :)

Will do.

`666 07-27-2008 08:13

Re: Vote Mute 1.0
 
also maybe add command for admins to able to mute players without vote?
Then people won't have to use 2 plugins, when this one does all the jobs :D

cheers.

Jon 07-27-2008 09:10

Re: Vote Mute 1.0
 
Quote:

Originally Posted by `666 (Post 659694)
also maybe add command for admins to able to mute players without vote?
Then people won't have to use 2 plugins, when this one does all the jobs :D

cheers.

Already finished that :)

Quote:

Originally Posted by koss_4life (Post 659348)
I found some bug :( At the beginning of the map, you can vote but at the end of the map you cannot vote any more , I got this message:

Uhm, works for me even before the update, make sure you are running the latest AMXX.


EDIT:

Quote:

Changelog 1.0-1.1
  • Added some parenthesis to hopefully solve the bug with calculating 'Yes' votes
  • Added cvar to set if admins should be immune against mute voting or not
  • Added cmd to manually mute players.


`666 07-27-2008 09:38

Re: Vote Mute 1.1
 
nice one.
Also can you add so it detects if all talk on or off, because it is pointless if other team vote to mute player from opposite team when all talk is off.

S.W.A.T Slix 07-27-2008 12:01

Re: Vote Mute 1.2
 
I don't know whats wrong with the plugin. Here is a screeny to show you.
http://i230.photobucket.com/albums/e...ssault0025.png

These are my cvars:
PHP Code:

vm_enable 1
Enables/disables plugin.

vm_muteplayer #userid/nick seconds
Command to mute players manually.

vm_neededpercent 95
How many percent of the votes that has to be "Yes" for the vote to be successful.

vm_delay 0-∞
How long a player has to wait before he/she can start a new mute vote.

vm_mutetime 0
How long the target player gets muted.

vm_showvotes 1
Determines if who votes what should be printed in chat.

vm_mutednovote 0
Determines if muted players can start a mute vote or not.

vm_adminimmunity 1
Determines if admins with immunity flag are immune against mute voting


PvtSmithFSSF 07-27-2008 12:03

Re: Vote Mute 1.2
 
muted as in cannot use the microphone.
they can still type i believe..

Jon 07-27-2008 12:06

Re: Vote Mute 1.2
 
Quote:

Originally Posted by PvtSmithFSSF (Post 659801)
muted as in cannot use the microphone.
they can still type i believe..

That's right, I'll add a cvar to mute chat, hold on 2sec.

edit: done

S.W.A.T Slix 07-27-2008 12:39

Re: Vote Mute 1.21
 
Plugin works like a charm. +Karma

Styles 07-27-2008 13:42

Re: Vote Mute 1.21
 
Add ML support, then I don't see why this can't be approved.

PvtSmithFSSF 07-27-2008 14:14

Re: Vote Mute 1.21
 
yes I definately think this should be approved. Only other mute-related plugin that I know of it the one where an admin can mute players with a command.. But this is better because it has that and if the admin isn't on, players can do it!! :D

Jon 08-11-2008 16:13

Re: Mute Votes / Gag v1.3
 
Quote:

Changelog 1.21-1.3
  • Renamed plugin and cvars.
  • Fixed some small bugs and optimized the code.
  • Added cvar: mv_resultdelay.
  • Added ML System.

Still looking for translations. Especially Dutch and French, credits will be given. :)

Arkshine 08-11-2008 17:03

Re: Mute Votes / Gag v1.3
 
French translation.

Code:

[fr]
MENU_SELECTPLAYER = Selectionner un joueur :
MENU_STARTVOTE = Muter %s ?
MENU_YES = Oui
MENU_NO = Non
ALREADY_MUTED = [MV] Ce joueur est deja mute.
ADMIN_MUTE = [MV] %s a ete mute %s pour %d seconde(s).
PLUGIN_DISABLED = [MV] Le vote pour muter un joueur est actuellement inactif.
IS_DELAYED = [MV] Tu dois attendre %d seconde(s) avant de lancer un vote de nouveau.
ALREADY_ACTIVE = [MV] Un autre vote est deja actif.
MUTED_NOVOTE = [MV] Des joueurs mutes ne peuvent pas lancer de vote.
HAS_IMMUNITY = [MV] Ce joueur a l'immunite.
ALLTALK = [MV] Ce joueur n'est pas dans ton equipe.
ALLTALK_ADMIN = [MV] Ce joueur n'est pas ton equipe ( sv_alltalk doit etre actif ).
STARTED_VOTE = [MV] %s a lance un vote pour muter %s.
VOTED_FOR = ** %s a vote pour.
VOTED_AGAINST = ** %s a vote contre.
DIDNT_VOTE = ** %s n'a pas vote.
VOTES_RESULT = [MV] Oui %d  -  Non : %d  -  Requis : %d%%.
WAS_MUTED = [MV] Resultat : %s est mute.
WAS_NOT_MUTED = [MV] Resultat : %s n'est pas mute.


Jon 08-11-2008 17:10

Re: Mute Votes / Gag v1.3
 
Added, thanks a lot :)

maplebest 08-11-2008 17:26

Re: Mute Votes / Gag v1.3
 
Nice plugin :D
BTW
I made a translate to swedish in the translate thread :D

Self-Serve 08-13-2008 01:55

Re: Mute Votes / Gag v1.3
 
Very nice plugin.

I'll definately be using this to make my server more interactive.

Thanks!

levvvy 08-21-2008 08:17

Re: Mute Votes / Gag v1.3
 
Polish Translation
Code:

[pl]
MENU_SELECTPLAYER = Wybierz gracza:
MENU_STARTVOTE = Wyciszyc %s?
MENU_YES = Tak
MENU_NO = Nie
ALREADY_MUTED = [MV] Ten Gracz juz zostal wyciszony.
ADMIN_MUTE = [MV] %s zostal wyciszony %s na %d sekund.
PLUGIN_DISABLED = [MV] Glosowanie na wyciszenie jest obecnie wylaczone.
IS_DELAYED = [MV] Musisz zaczekać %d sekund zanim będziesz mogl glosowac ponownie.
ALREADY_ACTIVE = [MV] Inne glosowanie jest obecnie w toku.
MUTED_NOVOTE = [MV] Wyciszeni gracze nie moga rozpoczac glosowania.
HAS_IMMUNITY = [MV] Ten gracz ma immunited.
ALLTALK = [MV] Ten gracz nie jest w twojej druzynie.
ALLTALK_ADMIN = [MV] Ten gracz nie jest w twojej druzynie (sv_alltalk musi byc aktywny).
STARTED_VOTE = [MV] %s rozpoczol glosowanie na %s.
VOTED_FOR = ** %s zaglosowal na.
VOTED_AGAINST = ** %s zaglosowal przeciwko.
DIDNT_VOTE = ** %s nie zaglosowal.
VOTES_RESULT = [MV] Tak %d  -  Nie: %d  -  Potrzebne: %d%%.
WAS_MUTED = [MV] Rezultat: %s zostal wyciszony.
WAS_NOT_MUTED = [MV] Rezultat: %s nie zostal wyciszony.


`666 11-06-2008 14:38

Re: Mute Votes / Gag v1.3
 
I get this on cz server

Quote:

L 11/06/2008 - 05:15:41: [AMXX] Displaying debug trace (plugin "mutevotes.amxx")
L 11/06/2008 - 05:15:41: [AMXX] Run time error 5: memory access
L 11/06/2008 - 05:15:41: [AMXX] [0] mutevotes.sma::handleSelectPlayer (line 180)
L 11/06/2008 - 05:15:41: [AMXX] [1] mutevotes.sma::menuStartVote (line 202)
L 11/06/2008 - 05:15:41: [AMXX] [2] mutevotes.sma::handleSelectPlayer (line 176)

deadman909 08-03-2009 19:28

Re: Mute Votes / Gag v1.3
 
Trying it OUT

Is3 08-07-2009 13:29

Re: Mute Votes / Gag v1.3
 
not working for DoD 1.3 :/ server crash.

xPaw 10-31-2009 10:11

Re: Mute voting BETA v1.4
 
Add cvar if only admins can use it or no, thanks.

Jon 10-31-2009 13:19

Re: Mute voting BETA v1.4
 
Added.

jiumix 11-05-2009 12:26

Re: Mute Voting BETA v1.4
 
Quote:

[ru]
MENU_SELECTPLAYER = Выберите игрока:
MENU_STARTVOTE = Заткнуть %s?
MENU_YES = Да
MENU_NO = Нет
ALREADY_MUTED = [MV] Этот игрок уже заткнут.
ADMIN_MUTE = [MV] %s был заткнут %s на %d секунд.
PLUGIN_DISABLED = [MV] Голосование было отменено.
IS_DELAYED = [MV] Вы должны подождать %d секунд чтобы начать новое голосование.
ALREADY_ACTIVE = [MV] Активно другое голосование на игрока.
MUTED_NOVOTE = [MV] Заткнутые игроки не могут начать голосование.
HAS_IMMUNITY = [MV] У этого игрока имунитет.
ALLTALK = [MV] Этот игрок не из вашей команды.
ALLTALK_ADMIN = [MV] Этот игрок не из вашей команды (sv_alltalk должен быть включенным).
STARTED_VOTE = [MV] %s началось голосование против %s.
VOTED_FOR = ** %s проголосовал за.
VOTED_AGAINST = ** %s проголосовал против.
DIDNT_VOTE = ** %s не стал голосовать.
VOTES_RESULT = [MV] Да %d - Нет: %d - Нужно: %d%%.
WAS_MUTED = [MV] Результат: %s был заткнут.
WAS_NOT_MUTED = [MV] Результат: %s не был заткнут.

Jon 11-08-2009 13:27

Re: Mute Voting v1.4
 
No longer beta, updated.

martagos 11-30-2009 11:21

Re: Mute Voting 1.4
 
why does work the plugin for Counter-Strike Condition Zero :cry:

[AMXX] Invalid Plugin (plugin "mute_voting.amxx")

plz fix this problem

`666 12-20-2009 13:06

Re: Mute Voting 1.4
 
what % need for successful vote? maybe add cvar to change % :D

gelado 10-02-2012 18:34

Re: Mute Voting 1.4
 
Any chance to, only Vips with flag "b" can do "/votemute


All times are GMT -4. The time now is 13:27.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.