Raised This Month: $ Target: $400
 0% 

ID of an Random T


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 06-27-2010 , 06:39   ID of an Random T
Reply With Quote #1

Good afternoon AM!

Can you tell me how to get the ID of a random alive Terrorist?


Thanks

I tried it myself but that cant work:
PHP Code:
    new random1
    
new players[32], pnumtempid;
    new 
max1 0
    get_players
(playerspnum"a");

    for( new 
ii<pnumi++ )
    {
        
tempid players[i]
        
vip[tempid] = 0
        
if(cs_get_user_team(tempid) == CS_TEAM_T)
        {
            
max1++
        }
    }
    
    
random1 random_num(1max1

Mottzi
__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers

Last edited by mottzi; 06-27-2010 at 06:42.
mottzi is offline
Send a message via MSN to mottzi
 



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 14:47.


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