Thanks very much for your help! but when I do it, it doesn't seem to mute them.
At first I was going to use get_players() to create the players array, but I had to alter your function to account for the fact that get_players is a 32 size array not 33. I changed the paramter to players[32] and made i=0 and in the voicemask setting i took out -1, but it didn't seem to work.
So I tried simply making an empty array. I figure it doesn't work because the players array doesn't contain the actual player id..was hoping you could go a little more detailed for me?
Code:
public reset_hud(id) {
new players[33];
// This is where I had players a 32 size array and used get_players
// currently using an empty 33 slot array to be compatible with avalanche's function
g_mask_listen[id] = 0;
g_mask_block[id] = create_voicemask(players);
client_print(id, print_chat, "Testing Listen: %i - Block: %i", g_mask_listen[id], g_mask_block[id]);
message_begin(MSG_ONE,gmsgVoiceMask,{0,0,0},id);
write_long(g_mask_listen[id]);
write_long(g_mask_block[id]);
message_end();
return PLUGIN_CONTINUE;
}
It doesn't mute anyone at all, but the client_print does return 0 and 15 so the stock is returning value.
__________________