View Single Post
BOT Benson
Member
Join Date: Jun 2018
Location: Istanbul, Turkey
Old 09-08-2018 , 11:10   Re: [CSGO] Map Change Client Crash Fixer (v1.0.0.6 , 2018/09/08)
Reply With Quote #3

Quote:
Originally Posted by mug1wara View Post
good fucking job

although there's safer ways to do this (SetIntCvar)
Code:
bool SetIntCvar(const char[] scvar, int alue) 
{
	ConVar cvar = FindConVar(scvar);
	
	if (cvar != null) 
	{
		cvar.SetInt(value);
		return true;
	}
	
	else
		return false;
}
This is not necessary for the plugin. There are 3 fixed cvars. corrected (Github)
__________________
BOT Benson is offline