AddTargetsToMenu Function

Adds targets to an admin menu.

Each client is displayed as: name (userid) Each item contains the userid as a string for its info.

int AddTargetsToMenu(Handle menu, int source_client, bool in_game_only, bool alive_only)


Handle menu

Menu Handle.

int source_client

Source client, or 0 to ignore immunity.

bool in_game_only

True to only select in-game players.

bool alive_only

True to only select alive players.

Return Value

Number of clients added.