View Single Post
Jamo
Junior Member
Join Date: Aug 2018
Old 03-12-2020 , 09:15   Re: [CS:GO] GetClientTeam() returns incosistent numbers
Reply With Quote #4

Quote:
Originally Posted by Vaggelis View Post
Well, you can use if(GetClientTeam(client) > 1), also if you have spectators in-game GetClientCount may return them too, im not sure i have never used that function. Try the classic loop... <= MaxClients to count them.
"GetClientCount" also counts spectators. That's why I have to go through all that...

Edit: "if(GetClientTeam(client) > 1)". Pls see my initial post. You can see there, that even a CT showed up as Team ID 1.

Last edited by Jamo; 03-12-2020 at 09:17.
Jamo is offline