Raised This Month: $ Target: $400
 0% 

asdasd


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

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

__________________
Like my clean plugins and work?
Baws 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