block load
{
	es_xmsg es_xmsg #multi #green[:[Uber's Anti Cheat] Has Been Loaded:]
}

event round_start
{
	es_queryclientvar event_var(userid) sv_cheats
	es_queryclientvar event_var(userid) mat_wireframe
	es_queryclientvar event_var(userid) r_drawothermodels
	es_queryclientvar event_var(userid) mat_fillrate
	es_queryclientvar event_var(userid) snd_show
	es_queryclientvar event_var(userid) snd_visualize
	es_queryclientvar event_var(userid) r_partition_level
	es_queryclientvar event_var(userid) r_drawbrushmodels
	es_queryclientvar event_var(userid) mem_force_flush
	es_queryclientvar event_var(userid) r_drawmodelstatsoverlay
	es_queryclientvar event_var(userid) cl_leveloverview
	es_queryclientvar event_var(userid) r_visualizetraces
	es_queryclientvar event_var(userid) r_rainspeed
	es_queryclientvar event_var(userid) r_visualizelighttraces
	es_queryclientvar event_var(userid) cl_particles_show_bbox
	es_queryclientvar event_var(userid) r_drawparticles
	es_queryclientvar event_var(userid) r_drawlights
	es_queryclientvar event_var(userid) r_drawrenderboxes
	es_queryclientvar event_var(userid) vcollide_wireframe
	es_queryclientvar event_var(userid) fog_enable
	es_queryclientvar event_var(userid) mat_normalmaps
	es_queryclientvar event_var(userid) mat_luxels
	es_queryclientvar event_var(userid) cl_pitchup
	es_queryclientvar event_var(userid) cl_pitchdown
	es_queryclientvar event_var(userid) cl_bobcycle
	es_queryclientvar event_var(userid) r_modelwireframedecal
	es_queryclientvar event_var(userid) vgui_drawtree
	es_queryclientvar event_var(userid) sv_showplayerhitboxes
}

event player_activate
{
	es_queryclientvar event_var(userid) sv_cheats
	es_queryclientvar event_var(userid) mat_wireframe
	es_queryclientvar event_var(userid) r_drawothermodels
	es_queryclientvar event_var(userid) mat_fillrate
	es_queryclientvar event_var(userid) snd_show
	es_queryclientvar event_var(userid) snd_visualize
	es_queryclientvar event_var(userid) r_partition_level
	es_queryclientvar event_var(userid) r_drawbrushmodels
	es_queryclientvar event_var(userid) mem_force_flush
	es_queryclientvar event_var(userid) r_drawmodelstatsoverlay
	es_queryclientvar event_var(userid) cl_leveloverview
	es_queryclientvar event_var(userid) r_visualizetraces
	es_queryclientvar event_var(userid) r_rainspeed
	es_queryclientvar event_var(userid) r_visualizelighttraces
	es_queryclientvar event_var(userid) cl_particles_show_bbox
	es_queryclientvar event_var(userid) r_drawparticles
	es_queryclientvar event_var(userid) r_drawlights
	es_queryclientvar event_var(userid) r_drawrenderboxes
	es_queryclientvar event_var(userid) vcollide_wireframe
	es_queryclientvar event_var(userid) fog_enable
	es_queryclientvar event_var(userid) mat_normalmaps
	es_queryclientvar event_var(userid) mat_luxels
	es_queryclientvar event_var(userid) cl_pitchup
	es_queryclientvar event_var(userid) cl_pitchdown
	es_queryclientvar event_var(userid) cl_bobcycle
	es_queryclientvar event_var(userid) r_modelwireframedecal
	es_queryclientvar event_var(userid) vgui_drawtree
	es_queryclientvar event_var(userid) sv_showplayerhitboxes
}

event es_player_variable
{
	if (event_var(status) == "success") do
	{
		if (event_var(variable) == "sv_cheats") do
		{
			if (event_var(value) = 1) then banid event_var(userid) 50
			es_msg #multi #greenPlayer got banned for cheating!
		}
		if (event_var(variable) == "mat_wireframe") do
		{
			if (event_var(value) = 1) then banid event_var(userid) 50
			es_msg #multi #greenPlayer got banned for cheating!
		}
		if (event_var(variable) == "r_drawothermodels") do
		{
			if (event_var(value) = 1) then banid event_var(userid) 50
			es_msg #multi #greenPlayer got banned for cheating!
		}
		if (event_var(variable) == "mat_filrate") do
		{
			if (event_var(value) = 1) then banid event_var(userid) 50
			es_msg #multi #greenPlayer got banned for cheating!
		}
		if (event_var(variable) == "snd_show") do
		{
			if (event_var(value) = 1) then banid event_var(userid) 50
			es_msg #multi #greenPlayer got banned for cheating!
		}
		if (event_var(variable) == "snd_visualize") do
		{
			if (event_var(value) = 1) then banid event_var(userid) 50
			es_msg #multi #greenPlayer got banned for cheating!
		}
		if (event_var(variable) == "r_partition_level") do
		{
			if (event_var(value) = 1) then banid event_var(userid) 50
			es_msg #multi #greenPlayer got banned for cheating!
		}
		if (event_var(variable) == "r_drawbrushmodels") do
		{
			if (event_var(value) = 1) then banid event_var(userid) 50
			es_msg #multi #greenPlayer got banned for cheating!
		}
		if (event_var(variable) == "mem_force_flush") do
		{
			if (event_var(value) = 1) then banid event_var(userid) 50
			es_msg #multi #greenPlayer got banned for cheating!
		}
		if (event_var(variable) == "r_drawmodelstatsoverlay") do
		{
			if (event_var(value) = 1) then banid event_var(userid) 50
			es_msg #multi #greenPlayer got banned for cheating!
		}
		if (event_var(variable) == "cl_leveloverview") do
		{
			if (event_var(value) = 1) then banid event_var(userid) 50
			es_msg #multi #greenPlayer got banned for cheating!
		}
		if (event_var(variable) == "r_shadowwireframe") do
		{
			if (event_var(value) = 1) then banid event_var(userid) 50
			es_msg #multi #greenPlayer got banned for cheating!
		}
		if (event_var(variable) == "r_visualizelighttraces") do
		{
			if (event_var(value) = 1) then banid event_var(userid) 50
			es_msg #multi #greenPlayer got banned for cheating!
		}
		if (event_var(variable) == "r_rainspeed") do
		{
			if (event_var(value) = 1) then banid event_var(userid) 50
			es_msg #multi #greenPlayer got banned for cheating!
		}
		if (event_var(variable) == "r_visualizelighttraces") do
		{
			if (event_var(value) = 1) then banid event_var(userid) 50
			es_msg #multi #greenPlayer got banned for cheating!
		}
		if (event_var(variable) == "cl_particles_show_bbox") do
		{
			if (event_var(value) = 1) then banid event_var(userid) 50
			es_msg #multi #greenPlayer got banned for cheating!
		}
		if (event_var(variable) == "r_drawparticles") do
		{
			if (event_var(value) = 1) then banid event_var(userid) 50
			es_msg #multi #greenPlayer got banned for cheating!
		}
		if (event_var(variable) == "r_drawlights") do
		{
			if (event_var(value) = 1) then banid event_var(userid) 50
			es_msg #multi #greenPlayer got banned for cheating!
		}
		if (event_var(variable) == "r_drawrenderboxes") do
		{
			if (event_var(value) = 1) then banid event_var(userid) 50
			es_msg #multi #greenPlayer got banned for cheating!
		}
		if (event_var(variable) == "vcollide_wireframe") do
		{
			if (event_var(value) = 1) then banid event_var(userid) 50
			es_msg #multi #greenPlayer got banned for cheating!
		}
		if (event_var(variable) == "fog_enable") do
		{
			if (event_var(value) = 1) then banid event_var(userid) 50
			es_msg #multi #greenPlayer got banned for cheating!
		}
		if (event_var(variable) == "mat_normalmaps") do
		{
			if (event_var(value) = 1) then banid event_var(userid) 50
			es_msg #multi #greenPlayer got banned for cheating!
		}
		if (event_var(variable) == "mat_luxels") do
		{
			if (event_var(value) = 1) then banid event_var(userid) 50
			es_msg #multi #greenPlayer got banned for cheating!
		}
		if (event_var(variable) == "cl_pitchup") do
		{
			if (event_var(value) = 1) then banid event_var(userid) 50
			es_msg #multi #greenPlayer got banned for cheating!
		}
		if (event_var(variable) == "cl_pitchdown") do
		{
			if (event_var(value) = 1) then banid event_var(userid) 50
			es_msg #multi #greenPlayer got banned for cheating!
		}
		if (event_var(variable) == "cl_bobcycle") do
		{
			if (event_var(value) = 1) then banid event_var(userid) 50
			es_msg #multi #greenPlayer got banned for cheating!
		}
		if (event_var(variable) == "r_modelwireframedecal") do
		{
			if (event_var(value) = 1) then banid event_var(userid) 50
			es_msg #multi #greenPlayer got banned for cheating!
		}
		if (event_var(variable) == "sv_showplayerhitboxes") do
		{
			if (event_var(value) = 1) then banid event_var(userid) 50
			es_msg #multi #greenPlayer got banned for cheating!
		}
		if (event_var(variable) == "vgui_drawtree") do
		{
			if (event_var(value) = 1) then banid event_var(userid) 50
			es_msg #multi #greenPlayer got banned for cheating!
		}
	}
}