get team players
How to get/know there is player in T team and there is player in CT team?
PHP Code:
|
Re: get team players
There are multiple ways of doing this.. One way, you could loop through all possible player IDs and count the ones under given conditions.
This example here stores player counts in variables for both teams. PHP Code:
|
Re: get team players
Quote:
Can i use it in client_putinserver ? PHP Code:
|
Re: get team players
The user has not joined a team when client_putinserver is called
|
Re: get team players
It depends on what you're trying to achieve by using the team counts. Maybe explain a little more about what the code will be used for so someone can give a more accurate response.
|
Re: get team players
PHP Code:
|
Re: get team players
Don't use #2 code
get_players is always better than looping from 1 to 32, or than from 1 to maxplayers. PHP Code:
|
Re: get team players
Thanks Connor you are the best.
|
| All times are GMT -4. The time now is 23:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.