Raised This Month: $ Target: $400
 0% 

Create a VoiceMask?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 12-23-2006 , 04:12   Re: Create a VoiceMask?
Reply With Quote #7

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.
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
 



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 04:54.


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