find_player

Синтаксис

native find_player(const flags[], ...);

Употреба

flags
List of filtering flags:
  "a" - match with name
  "b" - match with name substring
  "c" - match with authid
  "d" - match with ip
  "e" - match with team name
  "f" - do not include dead clients
  "g" - do not include alive clients
  "h" - do not include bots
  "i" - do not include human clients
  "j" - return last matched client instead of the first
  "k" - match with userid
  "l" - match case insensitively
  "m" - include connecting clients
...
String to match against (integer if "k" flag is specified)

Описание

Find a player given a filter.

Забележка

Please consider using find_player_ex() instead which allows you to
use named constants for flags instead of letters.

Забележка

If matching by userid, do not also specify the "a", "b" or "c" flags,
or the function may not return a correct result.

Връщаща стойност

Client index, or 0 if no client was found