Raised This Month: $ Target: $400
 0% 

Split team


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
CarbonDioxide
Member
Join Date: Apr 2012
Old 06-15-2012 , 06:15   Split team
Reply With Quote #1

Hello all, I am trying to do the following:

I want to get the number of the players in the terrorist team, and then "split" them to two teams by setting bits.

For example:
PHP Code:
public splitThem()    
{
    new 
players[32], numplayer;
    
get_playersplayersnum"a" );
    
    for( new 
0numi++ )
    {
        
player players[i];
            
        
//For half the terrorists: 
        
set_bit(team1player);
        
//For the other half
        
set_bit(team1player);
    }

Do you know any way to do that ?
Thank you in advance
CarbonDioxide 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 06:19.


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