[CSS] Get current round

Please post any questions about developing your plugin here. Please use the search function before posting!
Junior Member
Posts: 2
Joined: Mon Feb 20, 2017 6:59 pm

[CSS] Get current round

Postby Flowan » Mon Feb 20, 2017 11:07 pm

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!

User avatar
Project Leader
Posts: 1717
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: [CSS] Get current round

Postby Ayuto » Tue Feb 21, 2017 7:03 pm

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))


Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 1 guest