Raised This Month: $32 Target: $400
 8% 

Solved [Small HELP] Random Choose 1 Player Vs All Players


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FonixPro20
Member
Join Date: Mar 2018
Old 05-03-2018 , 18:53   [Small HELP] Random Choose 1 Player Vs All Players
Reply With Quote #1

Hi All ,

How Can Help Me To Add This Random Player vs All Players CT and T .

Starting in Last Round To be in Next Round 1 Vs All

Thanks All .



PHP Code:
MyFunction( )
{
    new 
iPlayers32 ], iNum;
    
get_playersiPlayersiNum"ach" ); // find any player
    
    
if( iNum )
    {  
        
// get a random index of the players array
        
new iRandomIndex randomiNum );
        
        
// get the player index
        
new iPlayer iPlayersiRandomIndex ];
        
        
// I want This Player Vs All Starting In last Round To Be in Next Round 1 Vs All
    
}

FonixPro20 is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 05-04-2018 , 01:30   Re: [Small HELP] Random Choose 1 Player Vs All Players
Reply With Quote #2

Save the id into a private integer and continue on.
Next you have to pass through all player's id and switch them to CT side, but also blocking the special id from moving and set his team to T.
__________________
Relaxing is offline
Reply



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 19:16.


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