-
-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add 'j' and 'k' flags in get_players for matching with admin flags #476
base: master
Are you sure you want to change the base?
Changes from 3 commits
36337b4
026aad6
7e7a0a6
36d91e4
1e4c3b1
8fd8e78
3095aa6
0fa9766
5cb453d
8f68e57
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1387,11 +1387,13 @@ native get_playersnum(flag = 0); | |
* "g" - match case insensitive | ||
* "h" - do not include HLTV proxies | ||
* "i" - include connecting clients | ||
* @param team String to match against if the "e" or "f" flag is specified | ||
* "j" - match with all of the specified admin flags | ||
* "k" - match with any of the specified admin flags | ||
* @param string String to match against if the "e", "f", "j" or "k" flag is specified | ||
* | ||
* @noreturn | ||
*/ | ||
native get_players(players[MAX_PLAYERS], &num, const flags[] = "", const team[] = ""); | ||
native get_players(players[MAX_PLAYERS], &num, const flags[] = "", const string[] = ""); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can't rename params like that. You will break backward compatibility. People can still explicit the param There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it's okay to not update There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Arkshine I changed the param name back to stock get_players_ex(players[MAX_PLAYERS], &num, GetPlayersFlags:flags = GetPlayers_None, const team[] = "")
{
new strFlags[12];
get_flags(_:flags, strFlags, charsmax(strFlags));
get_players(players, num, strFlags, team);
} If we don't update |
||
|
||
/** | ||
* Retrieves argument of client command as string. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add consts for all flags?