client_find(var num)

Enumerates connected clients.

Returns:

0 if num is higher than the number of connected clients; otherwise the client_id.

Parameters:

num Number of the client, starting with 1 for the first connected client.

Edition

 C 

Speed:

Fast

Example (lite-C):

function find_number_of_clients()
{
  var num = 0;
  while(client_find(++num));
  return num-1;
}

See also:

on_server, client_drop, client_id, str_for_id

► latest version online