GetClientWeapon Function

Returns the client's weapon name.

void GetClientWeapon(int client, char[] weapon, int maxlen)

Parameters

int client

Player's index.

char[] weapon

Buffer to store the client's weapon name.

int maxlen

Maximum length of string buffer (includes NULL terminator).

Errors

Invalid client index, client not in game, or no mod support.