Jump to content

? servers

? players online

Map Switch/Remove Autoslay

Recommended Posts


  • Content Count:  2983
  • Joined:  01/08/13
  • Status:  Offline

There's a bug on the surf server that won't switch the map at 0:00 causing it to stay until an admin switches it or everyone RTV's (which takes a while). Don't know if it's a map specific bug that causes it but I've seen it on 2 maps already (vegetables and another one I can't remember). Might be an error that wont let the code continue and initiate map change sometimes.

 

 


 

Also this is something I noticed but the code in the surf plugin shown below doesn't require having autoslay to change the map. The line "CS_TerminateRound(1.0, CSRoundEnd_CTWin, true);" already does that to begin with so the autoslay isn't needed to change the map. Pretty sure the convar to set it to 0 would be ck_slay_on_round_end 0

 

public Action TerminateRoundTimer(Handle timer)
{
CS_TerminateRound(1.0, CSRoundEnd_CTWin, true);
bool bSlay = GetConVarBool(g_hSlayOnRoundEnd);
for (int i = 0; i 	{
	if (IsValidClient(i) && !IsFakeClient(i))
	{
		if (bSlay)
			ForcePlayerSuicide(i);
		else
			Client_Stop(i, 1);
	}
}
return Plugin_Handled;
}

  • Like 1
Link to comment

Reply to Thread

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...