Originally Posted by Austin
I have this setting
to give 7 seconds after a round is over before the next round starts.
How do I tell
1) if it is the end of round 3
2) and the mp_round_restart_delay time has expired?
1. int roundsPlayed = CS_GetTeamScore(CS_TEAM_CT) + CS_GetTeamScore(CS_TEAM_T);
2. When that time expires, a new round will start. HookEvent("round_start", Event_RoundStart, EventHookMode_PostNoCopy);
If you want to tell at any given moment if a round has ended, without relying on events:
GameRules_GetPropFloat("m_flRestartRoundTime" ) will be bigger than 0.0 if the round has ended.