Random player
How can i get a random player who's team is not unassigned and not spectator?
I'm making this function on round end |
Re: Random player
|
Re: Random player
I know get player command but i need that if player team is spectator or unassigned then it would find other player who is alive.And if that player is dead to then find other player and so on
|
Re: Random player
Use get_players()
|
Re: Random player
PHP Code:
|
Re: Random player
Use a switch for get_user_team(). Also, no reason to use continue in code so small, it just makes it harder to read.
|
Re: Random player
Quote:
PHP Code:
PHP Code:
|
Re: Random player
1, 2
|
Re: Random player
or 0 < team < 3
|
Re: Random player
Quote:
|
| All times are GMT -4. The time now is 03:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.