Raised This Month: $ Target: $400
 0% 

asdasd


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 03-20-2014 , 22:20   Re: GetPlayers Bugging
Reply With Quote #3

Quote:
Originally Posted by baws View Post
i don't really know if this will work but i tried at least.
PHP Code:
public GetPlayers()
{
    
//static terrorists, counter_terrorists
 
    
for(new id 1id <= get_maxplayers(); id++)
    {
        if(
is_user_connected(id) && is_user_alive(id))
        {
            if(
cs_get_user_team(id) == CS_TEAM_T)
            {
                
cs_set_user_team(id, (CS_TEAM_T terrorists++))
                
//terrorists++
            
}
 
            if(
cs_get_user_team(id) == CS_TEAM_CT)
            {
                
cs_set_user_team(id, (CS_TEAM_CT counter_terrorists++))
                
//counter_terrorists++
            
}
        }
    }

    if(
terrorists && counter_terrorists)
    {
        return 
PLUGIN_CONTINUE
    
}
 
    return 
PLUGIN_HANDLED

If you don't know if it will work then you shouldn't try and help all your doing is going to confuse the OP.
__________________
Blizzard_87 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 05:54.


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