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( id, SPEAK_NORMAL );
new name[32]; get_user_name(id, name, 31)
new name2[32]; get_user_name(Name[id], name2, 31)
if(g_Protected[Name[id]])
ChatColor(0, "!g[%s] !team%s!y is protected!", TAG, name2);
else
ChatColor(0,"!g[%s] !team%s!y unmuted !team%s!y's voice. [%s]", TAG, name, name2, g_pstatus[id])
} else {
IsMuted[id]++;
set_speak( id, SPEAK_MUTED );
new name[32]; get_user_name(id, name, 31)
new name2[32]; get_user_name(Name[id], name2, 31)
if(g_Protected[Name[id]])
ChatColor(0, "!g[%s] !team%s!y is protected!", TAG, name2);
else
ChatColor(0,"!g[%s] !team%s!y muted !team%s!y's voice for !g1!ymap!g [%s]", TAG, name, name2, Reason[id], Skill[g_pstatus[id]])
}
ScreenFadeOut(id)
return PLUGIN_HANDLED;
}