Raised This Month: $ Target: $400
 0% 

get_playersnum exclude HLTV


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
RedRobster
Veteran Member
Join Date: Apr 2010
Location: Your Closet
Old 06-08-2010 , 18:31   Re: get_playersnum exclude HLTV
Reply With Quote #2

PHP Code:
public client_disconnect(id)
{
    new 
PlayerCount
    
new iPlayers[32], iNum
    get_players
(iPlayers,iNum)
    for(new 
iiNumi++)
    {
        new 
tempid iPlayers[i]
        if(!
is_user_bot(tempid) && is_user_connected(tempid))
            
PlayerCount++
    }
    if(
PlayerCount == 0)
    {
        
remove_task(TASKID_RESET)
        
reset()
    }

That should work.
RedRobster 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:19.


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