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
[CSS] Get current round
Re: [CSS] Get current round
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())
Return to “Plugin Development Support”
Who is online
Users browsing this forum: No registered users and 68 guests