Raised This Month: $ Target: $400
 0% 

Best way count players


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
pentakill
Member
Join Date: Oct 2014
Old 07-29-2019 , 23:03   Best way count players
Reply With Quote #1

Is this the best way to count players?
PHP Code:
new ctsnumtsnumteam

    
for (new i=1i<=MAX_JOGADORESi++)
    {
        if (!
is_user_connected(i) || !is_user_alive(i)) continue
        
team get_user_team(i)
        if (
team == 1tsnum++
        else if (
team == 2ctsnum++
    } 
pentakill 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 17:19.


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