Quote:
Originally Posted by Austin
I have this setting
mp_round_restart_delay 7
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?
Tx
|
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.
__________________
I am available to make plugins for pay.
Discord: Eyal282#1334