GetClientName Function

Returns the client's name.

bool GetClientName(int client, char[] name, int maxlen)


int client

Player index.

char[] name

Buffer to store the client's name.

int maxlen

Maximum length of string buffer (includes NULL terminator).

Return Value

True on success, false otherwise.


If the client is not connected an error will be thrown.