mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-04-23 23:13:43 +03:00
Updated get_players_ex
This commit is contained in:
parent
36337b4a48
commit
026aad6c41
@ -492,7 +492,9 @@ enum GetPlayersFlags (<<= 1)
|
|||||||
GetPlayers_MatchNameSubstring, // Match with part of name
|
GetPlayers_MatchNameSubstring, // Match with part of name
|
||||||
GetPlayers_CaseInsensitive, // Match case insensitive
|
GetPlayers_CaseInsensitive, // Match case insensitive
|
||||||
GetPlayers_ExcludeHLTV, // Do not include HLTV proxies
|
GetPlayers_ExcludeHLTV, // Do not include HLTV proxies
|
||||||
GetPlayers_IncludeConnecting // Include connecting clients
|
GetPlayers_IncludeConnecting, // Include connecting clients
|
||||||
|
GetPlayers_MatchAllFlags, // Match with all of the specified admin flags
|
||||||
|
GetPlayers_MatchAnyFlags // Match with any of the specified admin flags
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -859,13 +859,15 @@ stock set_task_ex(Float:time, const function[], id = 0, const any:parameter[] =
|
|||||||
* GetPlayers_CaseInsensitive - match case insensitive
|
* GetPlayers_CaseInsensitive - match case insensitive
|
||||||
* GetPlayers_ExcludeHLTV - do not include HLTV proxies
|
* GetPlayers_ExcludeHLTV - do not include HLTV proxies
|
||||||
* GetPlayers_IncludeConnecting - include connecting clients
|
* GetPlayers_IncludeConnecting - include connecting clients
|
||||||
* @param team String to match against if the "e" or "f" flag is specified
|
* GetPlayers_MatchAllFlags - match with all of the specified admin flags
|
||||||
|
* GetPlayers_MatchAnyFlags - 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
|
* @noreturn
|
||||||
*/
|
*/
|
||||||
stock get_players_ex(players[MAX_PLAYERS], &num, GetPlayersFlags:flags = GetPlayers_None, const team[] = "")
|
stock get_players_ex(players[MAX_PLAYERS], &num, GetPlayersFlags:flags = GetPlayers_None, const string[] = "")
|
||||||
{
|
{
|
||||||
new strFlags[10];
|
new strFlags[10];
|
||||||
get_flags(_:flags, strFlags, charsmax(strFlags));
|
get_flags(_:flags, strFlags, charsmax(strFlags));
|
||||||
get_players(players, num, strFlags, team);
|
get_players(players, num, strFlags, string);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user