Hi, i have this map on my server:
http://steamcommunity.com/sharedfile...?id=1241444522
The main problem is map sets mp_maxrounds for 300, but for some reasons i need to make this map lasts only 1 round, and after this round map ends, and fully restarts on this map again.
But i cant get it. On every round map again sets 300 rounds.
I tried this:
Handle hTimer;
ConVar cv;
#define COUNTTIME 20.0
public void OnPluginStart()
{
HookEvent("round_start", RoundStart);
cv = FindConVar("mp_maxrounds");
}
public void RoundStart(Event event, const char[] name, bool dbc)
{
if(hTimer != null)
{
KillTimer(hTimer);
hTimer = null;
}
hTimer = CreateTimer(COUNTTIME, cvTimer, _, TIMER_FLAG_NO_MAPCHANGE);
}
public Action cvTimer(Handle timer)
{
SetConVarInt(cv, 1);
}
But it sets maxrounds to 1, and instantly map backs it to 300...
Can i somehow strongly set maxrounds to 1 or remove this cvar from a map?
P.S mapconfigs plugin doesnt helped too.