[CS:GO] how to get the number of real people in the team
Posted: Tue Apr 30, 2019 9:48 am
Hello!
How to get the number of real people in the team? (without bots)
How to get the number of real people in the team? (without bots)
Syntax: Select all
def get_real_player_count(team_number):
count = 0
for player in PlayerIter('human'):
if player.team == team_number:
count += 1
return count
Code: Select all
'all',
'bot',
'human',
'alive',
'dead',
'un',
'spec',
't',
'ct'
Syntax: Select all
from filters.players import PlayerIter
def get_real_player_count(team):
return len(PlayerIter(['human', team]))