Raised This Month: $ Target: $400
 0% 

Need a plugin for Scramble Teams.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ish12321
Veteran Member
Join Date: May 2016
Old 10-28-2016 , 07:46   Re: Need a plugin for Scramble Teams.
Reply With Quote #10

HELP NEEDED !
This sends sometimes all users to CT or T
Any way to scramble but make team equal, i.e., the team of 7x7 should remain 7x7 even after scramble
PHP Code:
public Scramble_Start()
{
    if(!(
PvOTES NvOTES))
    {
        return;
    }

    
ChatPrint(0"%L"LANG_PLAYER"SCRAMBLING"TAG,  PvOTESNvOTES);

    new 
players[32], numplayer;
    
get_players(playersnum);

    for(new 
inumi++)
    {
        
player players[i]
        new 
team random_num(01);
        switch(
team)
        {
            case 
:
            {
                
cs_set_user_team(playerCS_TEAM_CT);
            }
            case 
:
            {
                
cs_set_user_team(playerCS_TEAM_T);
            }
        }
    }

__________________
['O|s|G'] | Death Wins a.k.a Ish Chhabra was here
ish12321 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 09:37.


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