Page 1 of 1

[CSS] Get current round

Posted: Mon Feb 20, 2017 11:07 pm
by Flowan
Hi all,

I could not find anything regarding this subject.

Does anyone know how to get the current round, when a round ends in counter strike source?

Thanks in advance!

Regards,
Flowan

Re: [CSS] Get current round

Posted: Tue Feb 21, 2017 7:03 pm
by Ayuto
Currently, there is no such function available, but you can simply sum the wins of all teams, which usually reflects the round count.

Syntax: Select all

from players.teams import team_managers
from filters.entities import EntityIter

def get_round_count():
return sum(entity.score for entity in EntityIter(team_managers))

print(get_round_count())