Each client is assigned a unique ID by the host when it connects. This function returns the ID that you have been assigned. The host also assigns itself an ID which can be found using GetNetworkServerID.
integer GetNetworkMyClientID( iNetID )
UINT agk::GetNetworkMyClientID( UINT iNetID )