AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   i need help with a mute menu (https://forums.alliedmods.net/showthread.php?t=214609)

timmiesgubbe 04-29-2013 09:59

i need help with a mute menu
 
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;




All times are GMT -4. The time now is 10:52.

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