Raised This Month: $ Target: $400
 0% 

Mute menu


Post New Thread Reply   
 
Thread Tools Display Modes
Old 06-02-2007, 10:31
gene
This message has been deleted by Brad. Reason: read the site rules. don't bump your posts.
Random-1324
Junior Member
Join Date: Apr 2007
Old 06-02-2007 , 19:38   Re: Mute menu
Reply With Quote #2

This plugin is pretty useful. I have a lot of people spam their mic, and they won't shut up. Since, me and my friends aren't on 24/7 people can mute them without asking me how to do it. Thanks!
Random-1324 is offline
`666
AlliedModders Donor
Join Date: Jan 2006
Old 02-21-2008 , 13:14   Re: Mute menu
Reply With Quote #3

blank menu pops up when I'm using it in spectator mode.
`666 is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 11-05-2008 , 22:57   Re: Mute menu
Reply With Quote #4

i dont know what happen but, i am configuring a new server and the mutemenu dont work..

[IMG]http://img523.**************/img523/9913/dsasdasui7.jpg[/IMG]

the server have players but dont appear..

any solution?
Alucard^ is offline
Send a message via Skype™ to Alucard^
CardCaptor
Junior Member
Join Date: Sep 2008
Old 02-27-2009 , 18:20   Re: Mute menu
Reply With Quote #5

Quote:
Originally Posted by Alucard^ View Post
i dont know what happen but, i am configuring a new server and the mutemenu dont work..

[IMG]http://img523.**************/img523/9913/dsasdasui7.jpg[/IMG]

the server have players but dont appear..

any solution?
The same but the menu doesnt appear
CardCaptor is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 02-27-2009 , 18:58   Re: Mute menu
Reply With Quote #6

You can use this version

PHP Code:
#include <amxmodx>
#include <fakemeta>

new bool:g_mute[33][33]
new 
g_menuchoose[33][33]

public 
plugin_init()
{
    
register_plugin("Voice Manager""1.0""ReymonARG/Cheap_Suit")
    
register_clcmd("say /mute""chat")
    
register_clcmd("say_team /mute""chat")
    
    
register_forward(FM_Voice_SetClientListening"fwd_voice_setclientlistening")
}

public 
client_connect(id)
{
    for(new 
0<= 32; ++i
        
g_mute[id][i] = false
}

public 
fwd_voice_setclientlistening(receiversenderlisten
{
    if(
receiver == sender)
        return 
FMRES_IGNORED
    
    
if(g_mute[receiver][sender])
    {
        
engfunc(EngFunc_SetClientListeningreceiversender0)
        return 
FMRES_SUPERCEDE
    
}
    return 
FMRES_IGNORED
}

public 
chat(id)
{
    
openmenu(id0)
    return 
PLUGIN_HANDLED
}

stock openmenu(idpage)
{        
    new 
menu menu_create("\r[Kz-Arg] \yMute Menu""menuaccion")
    new 
textmenu[64], count 1
    
    
for(new 1<= 32 i++)
    {
        if( !
is_user_connected(i) || is_user_bot(i) || is_user_hltv(i) )
            continue;
        
        new 
name[32], num[2]
        
get_user_name(iname31)
        
num_to_str(countnum1)
        
g_menuchoose[id][count++] = i
        formatex
(textmenu63"%s%s %s"id == "\d" "\w"nameg_mute[id][i] ? "\y(Muted)" "")
        
menu_additem(menutextmenunum0)
    }
    
    
menu_display(idmenupage)
    
    return 
PLUGIN_HANDLED;
}

public 
menuaccion(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        return 
PLUGIN_HANDLED
    
}
    
    new 
data[2], iName[64]
    new 
accesscallback
    
    menu_item_getinfo
(menuitemaccessdata1iName63callback)
    
    new 
g_menuchoose[id][str_to_num(data)]
    
    if( 
!= id )
        
g_mute[id][i] = !g_mute[id][i]
    
    
openmenu(id0)
    return 
PLUGIN_HANDLED

__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
CardCaptor
Junior Member
Join Date: Sep 2008
Old 02-27-2009 , 21:04   Re: Mute menu
Reply With Quote #7

Quote:
Originally Posted by AntiBots View Post
You can use this version

PHP Code:
#include <amxmodx>
#include <fakemeta>
 
new bool:g_mute[33][33]
new 
g_menuchoose[33][33]
 
public 
plugin_init()
{
    
register_plugin("Voice Manager""1.0""ReymonARG/Cheap_Suit")
    
register_clcmd("say /mute""chat")
    
register_clcmd("say_team /mute""chat")
 
    
register_forward(FM_Voice_SetClientListening"fwd_voice_setclientlistening")
}
 
public 
client_connect(id)
{
    for(new 
0<= 32; ++i
        
g_mute[id][i] = false
}
 
public 
fwd_voice_setclientlistening(receiversenderlisten
{
    if(
receiver == sender)
        return 
FMRES_IGNORED
 
    
if(g_mute[receiver][sender])
    {
        
engfunc(EngFunc_SetClientListeningreceiversender0)
        return 
FMRES_SUPERCEDE
    
}
    return 
FMRES_IGNORED
}
 
public 
chat(id)
{
    
openmenu(id0)
    return 
PLUGIN_HANDLED
}
 
stock openmenu(idpage)
{        
    new 
menu menu_create("\r[Kz-Arg] \yMute Menu""menuaccion")
    new 
textmenu[64], count 1
 
    
for(new 1<= 32 i++)
    {
        if( !
is_user_connected(i) || is_user_bot(i) || is_user_hltv(i) )
            continue;
 
        new 
name[32], num[2]
        
get_user_name(iname31)
        
num_to_str(countnum1)
        
g_menuchoose[id][count++] = i
        formatex
(textmenu63"%s%s %s"id == "\d" "\w"nameg_mute[id][i] ? "\y(Muted)" "")
        
menu_additem(menutextmenunum0)
    }
 
    
menu_display(idmenupage)
 
    return 
PLUGIN_HANDLED;
}
 
public 
menuaccion(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        return 
PLUGIN_HANDLED
    
}
 
    new 
data[2], iName[64]
    new 
accesscallback
 
    menu_item_getinfo
(menuitemaccessdata1iName63callback)
 
    new 
g_menuchoose[id][str_to_num(data)]
 
    if( 
!= id )
        
g_mute[id][i] = !g_mute[id][i]
 
    
openmenu(id0)
    return 
PLUGIN_HANDLED

This version works just perfect. But it doesn´t mute. It also has a problem with mutting some admines.

Last edited by CardCaptor; 02-27-2009 at 21:42.
CardCaptor is offline
Gam3ronE
SourceMod Donor
Join Date: Aug 2010
Old 01-07-2011 , 23:42   Re: Mute menu
Reply With Quote #8

Quote:
Originally Posted by AntiBots View Post
You can use this version

PHP Code:
#include <amxmodx>
#include <fakemeta>

new bool:g_mute[33][33]
new 
g_menuchoose[33][33]

public 
plugin_init()
{
    
register_plugin("Voice Manager""1.0""ReymonARG/Cheap_Suit")
    
register_clcmd("say /mute""chat")
    
register_clcmd("say_team /mute""chat")
    
    
register_forward(FM_Voice_SetClientListening"fwd_voice_setclientlistening")
}

public 
client_connect(id)
{
    for(new 
0<= 32; ++i
        
g_mute[id][i] = false
}

public 
fwd_voice_setclientlistening(receiversenderlisten
{
    if(
receiver == sender)
        return 
FMRES_IGNORED
    
    
if(g_mute[receiver][sender])
    {
        
engfunc(EngFunc_SetClientListeningreceiversender0)
        return 
FMRES_SUPERCEDE
    
}
    return 
FMRES_IGNORED
}

public 
chat(id)
{
    
openmenu(id0)
    return 
PLUGIN_HANDLED
}

stock openmenu(idpage)
{        
    new 
menu menu_create("\r[Kz-Arg] \yMute Menu""menuaccion")
    new 
textmenu[64], count 1
    
    
for(new 1<= 32 i++)
    {
        if( !
is_user_connected(i) || is_user_bot(i) || is_user_hltv(i) )
            continue;
        
        new 
name[32], num[2]
        
get_user_name(iname31)
        
num_to_str(countnum1)
        
g_menuchoose[id][count++] = i
        formatex
(textmenu63"%s%s %s"id == "\d" "\w"nameg_mute[id][i] ? "\y(Muted)" "")
        
menu_additem(menutextmenunum0)
    }
    
    
menu_display(idmenupage)
    
    return 
PLUGIN_HANDLED;
}

public 
menuaccion(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        return 
PLUGIN_HANDLED
    
}
    
    new 
data[2], iName[64]
    new 
accesscallback
    
    menu_item_getinfo
(menuitemaccessdata1iName63callback)
    
    new 
g_menuchoose[id][str_to_num(data)]
    
    if( 
!= id )
        
g_mute[id][i] = !g_mute[id][i]
    
    
openmenu(id0)
    return 
PLUGIN_HANDLED

Thanks - original version only has one page but this allows muting of everyone.

Last edited by Gam3ronE; 01-07-2011 at 23:44.
Gam3ronE is offline
Ejziponken
AlliedModders Donor
Join Date: Apr 2008
Old 08-13-2011 , 19:33   Re: Mute menu
Reply With Quote #9

Quote:
Originally Posted by Graham View Post
Thanks - original version only has one page but this allows muting of everyone.
That dosent have an option to mute all? :S
Ejziponken is offline
IneedHelp
Veteran Member
Join Date: Mar 2007
Location: Argentina
Old 02-27-2009 , 19:41   Re: Mute menu
Reply With Quote #10

It's the same..you only changed the menu system
__________________
IneedHelp is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:28.


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