Quote:
Originally Posted by KliPPy
We can't have it include "both" teams, because not all mods have 2 "main" teams and get_players() is a part of the Core, not CStrike.
Maybe if we change the prototype into
PHP Code:
native get_players(players[MAX_PLAYERS], &num, const flags[] = "", any:...);
it would allow for
PHP Code:
new players[MAX_PLAYERS];
new playersCount;
get_players(players, playersCount, "e", "TERRORIST", "CT");
would also open up the possibility for more advanced flags in the future.
|
That would greatly improve the get_players native. Do you plan on adding this at all? Calling get_players twice to get the count is not too bad but most of the time you want all the players to be in the same "players" array and it would be nice if it was as simple as "get_players(players, playersCount, "e", "TERRORIST", "CT");".