Raised This Month: $ Target: $400
 0% 

Create a VoiceMask?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 12-23-2006 , 01:38   Re: Create a VoiceMask?
Reply With Quote #6

Nevermind, I figured it out. Add together (1<<playerNum-1) for each player you want in the list. Example:

Code:
// players 1, 2, and 3 new voiceMask = (1<<0) | (1<<1) | (1<<2); // players 3, 7, 12, and 26 new voiceMask = (1<<2) | (1<<6) | (1<<11) | (1<<25); // create a voicemask based on players array stock create_voicemask(players[33]) {     new i, voiceMask;     for(i=1;i<=32;i++)     {         if(players[i]) voiceMask |= (1<<(i-1));     }     return voiceMask; }
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS

Last edited by XxAvalanchexX; 12-23-2006 at 01:41.
XxAvalanchexX 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 04:54.


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