[Suggestion] get_players flags
Is possible to include a flag in get_players() native to also return number of players in both teams?
Something like else get_players(players, num "j") // return players in both teams excluding Specs ? Ps. it will avoid to use double get_players to get count of both teams or a loop that check this?? |
Re: [Suggestion] get_players flags
use get_players() twice
|
Re: [Suggestion] get_players flags
Quote:
Ps. i'm look at amxmodx code and think that is easy to implement |
Re: [Suggestion] get_players flags
Quote:
Maybe if we change the prototype into PHP Code:
PHP Code:
|
Re: [Suggestion] get_players flags
Well, it could also return all players that are not hltv/spec which should be compatible with all the other games i think
|
Re: [Suggestion] get_players flags
Quote:
Ps. you not need to check both teams since in loop can skip "SPECTATORS" and "HLTV" |
Re: [Suggestion] get_players flags
It would be nice to add a flag in the get_players function that will find players with certaing admin flags only.
get_players(iPlayers, iPnum, "j", "abcdeimnu") |
Re: [Suggestion] get_players flags
Will change what, your suggestion compared to the default way to run two loops? Just optimization?
|
Re: [Suggestion] get_players flags
It's much more convinient to do this in one line instead of doing the same thing multiple times.
|
Re: [Suggestion] get_players flags
https://github.com/alliedmodders/amxmodx/pull/476 - I've managed to make the admin flags part. I may or may not try to do the multiple teams one.
PHP Code:
|
| All times are GMT -4. The time now is 23:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.