(HELP) Check if all in one team
How do i check if all the players are in one team.
If all of them are in one team, then do round win/end an balance team. |
Re: (HELP) Check if all in one team
get teams players num check if team1 players are 0 and the other has players restart the round.
|
Re: (HELP) Check if all in one team
Something like this maybe ..
PHP Code:
|
Re: (HELP) Check if all in one team
Quote:
Code:
|
Re: (HELP) Check if all in one team
You must check current online players before doing any of these.
|
Re: (HELP) Check if all in one team
What if there are 32 CTS ?
It is req. to perform both checks i guess.. |
Re: (HELP) Check if all in one team
Checking if there's 32 CTs but in fact there's 20 current players it will be marked as a false return.
Code:
|
Re: (HELP) Check if all in one team
Why are you all complicating things
Just check if one of teams has players and the other doesnt. if(terr_num > 1 && !ctnum || ctnum > 1 && !terr_num) ....... |
Re: (HELP) Check if all in one team
Quote:
|
| All times are GMT -4. The time now is 04:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.