View Single Post
peptobismal
Junior Member
Join Date: Dec 2017
Old 02-03-2018 , 22:45   Re: [L4D2] sv_steamgroup fixer
Reply With Quote #16

Quote:
Originally Posted by Visual77 View Post
Well then, I have only one other idea. Delete sv_steamgroup_fixer.smx from your server and compile a new .smx file with this code only.

Code:
#include <sourcemod>

#pragma semicolon 1
#pragma newdecls required

ConVar g_hSteamGroupCvar;

public void OnPluginStart()
{
	g_hSteamGroupCvar = FindConVar("sv_steamgroup");
}

public void OnConfigsExecuted()
{
	char stringValue[128];
	g_hSteamGroupCvar.GetString(stringValue, sizeof(stringValue));
	
	int intValue = StringToInt(stringValue);
	
	LogMessage("Setting sv_steamgroup %d", intValue);

	g_hSteamGroupCvar.SetInt(intValue);
}
I can confirm that this is working perfectly. Thank you!
peptobismal is offline