Raised This Month: $ Target: $400
 0% 

i need help with a mute menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
timmiesgubbe
Member
Join Date: Oct 2012
Location: Sweden
Old 04-29-2013 , 09:59   i need help with a mute menu
Reply With Quote #1

This is the code to the mute menu and its dosent work can some one help me?? to getit to work
PHP Code:
public MuteVoice(id) {
    if(!
is_user_connected(Name[id]))
        return 
PLUGIN_HANDLED;
    
    if(
IsMuted[id]) {
        
IsMuted[id]=0
        set_speak
idSPEAK_NORMAL );
    
        new 
name[32]; get_user_name(idname31)
        new 
name2[32]; get_user_name(Name[id], name231)
        if(
g_Protected[Name[id]])
            
ChatColor(0"!g[%s] !team%s!y is protected!"TAGname2);
        else
            
ChatColor(0,"!g[%s] !team%s!y unmuted !team%s!y's voice. [%s]"TAGnamename2g_pstatus[id])
    } else {
        
IsMuted[id]++;
        
set_speakidSPEAK_MUTED );
        
        new 
name[32]; get_user_name(idname31)
        new 
name2[32]; get_user_name(Name[id], name231)
        if(
g_Protected[Name[id]])
            
ChatColor(0"!g[%s] !team%s!y is protected!"TAGname2);
        else
            
ChatColor(0,"!g[%s] !team%s!y muted !team%s!y's voice for !g1!ymap!g [%s]"TAGnamename2Reason[id], Skill[g_pstatus[id]])
    }
    
ScreenFadeOut(id)
    return 
PLUGIN_HANDLED;

timmiesgubbe is offline
 



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 10:52.


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