Raised This Month: $ Target: $400
 0% 

Only one random player


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 12-26-2019 , 08:33   Re: Only one random player
Reply With Quote #7

PHP Code:
get_random_challenger(Clientbool:TeamTr)
{
    new 
iPlayers[MAX_PLAYERS], iNumiRandom[MAX_PLAYERS 1], iRandomNumid
    get_players
(iPlayersiNum"ae"TeamTr ?  "TERRORIST" "CT"
    for(new 
iiNum;i++)
    { 
        
id iPlayers[i]
        
        if(
Client != id)
        {
            
iRandom[++ iRandomNum] = id
        
}
    }
    return 
iRandom[random_num(1iRandomNum)]

__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/

Last edited by iceeedr; 12-26-2019 at 09:45.
iceeedr is offline
Send a message via Skype™ to iceeedr
 



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 02:41.


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