AddTargetsToMenu

Last Updated2007-10-22
Created At2007-10-01

Adds targets to an admin menu. Each client is displayed as: name (userid) Each item contains the userid as a string for its info.

native int AddTargetsToMenu(Handle menu, int source_client, bool in_game_only = true, bool alive_only = false)

Parameters

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

int Number of clients added.