native

get_user_team

Syntax

native get_user_team(index, team[] = "", len = 0);

Description

Returns the team id of the client, and optionally retrieves the name of
the team.

Parameters

index Client index
team Buffer to copy team name to
len Maximum size of buffer

Return

Team index on success, -1 if client index is invalid or
the client is not connected