Raised This Month: $ Target: $400
 0% 

How to return dead ct players?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 05-05-2012 , 11:21   Re: How to return dead ct players?
Reply With Quote #6

Quote:
Originally Posted by kiki33hun View Post
Count????? No count, read frist post please
Your title sais: How to return dead ct players?

So? What should I understand?

MeRcyLeZZ said:

PHP Code:
// Get Alive CTs
fnGetAliveCTs()
{
    static 
iCTsid
    iCTs 
0
    
    
for (id 1id <= g_maxplayersid++)
    {
        if (
g_isalive[id])
        {            
            if (
fm_cs_get_user_team(id) == FM_CS_TEAM_CT)
                
iCTs++
        }
    }
    
    return 
iCTs;

Then, Get Alive Counter-Terrorists will return the count of them. Sorry for that
__________________

Last edited by claudiuhks; 05-05-2012 at 11:26.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
 



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 00:24.


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