View Single Post
Tonblader
Senior Member
Join Date: Jul 2011
Location: Peru
Old 05-26-2019 , 00:30   Re: [L4D2] sv_steamgroup fixer
Reply With Quote #25

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 attach the smx
EDIT: add the sp file
Attached Files
File Type: sp Get Plugin or Get Source ([L4D2]sv_steamgroupfixer.sp - 760 views - 612 Bytes)

Last edited by Tonblader; 05-26-2019 at 07:48. Reason: Add .sp file
Tonblader is offline