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.
|
Also can be in this way, since amxx core can check the game teams.
Ps. you not need to check both teams since in loop can skip "SPECTATORS" and "HLTV"
__________________