Raised This Month: $12 Target: $400
 3% 

Kicking players with cl_filterstuffcmd


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MaNaReaver
Member
Join Date: Apr 2020
Location: India
Old 08-12-2020 , 00:15   Kicking players with cl_filterstuffcmd
Reply With Quote #1

Hey AM,

I was using uq_jumpstats which detects user cvar "cl_filterstuffcmd 1", but kicks players even if they have it set to 0. How to fix this?

Code:
public tskFps(id)
{
	if(is_user_alive(id) && !is_user_bot(id) && !is_user_hltv(id) && !CheckFlood(id))
	{
		if(leg_settings)
		{
                         query_client_cvar(id, "cl_filterstuffcmd", "qcv_callback");
                         client_cmd(id, "developer 0;fps_max 99.5;cl_forwardspeed 400;cl_sidespeed 400;cl_backspeed 400");
		}
	}
}

public qcv_callback(id, const cvar[], const value[])
{
	if (equal(value, "Bad CVAR request"))
               client_cmd(id, "fps_max 99.5");
	else if (!equal(value, "0"))
               server_cmd("kick #%d ^"cl_filterstuffcmd 1 detected! Set it to 0 to rejoin!^"", get_user_userid(id));

	if(!(equal(value, "Bad CVAR request")))
               client_cmd(id, "fps_max 99.5;fps_override 1");

	return PLUGIN_HANDLED;
}
__________________

Last edited by MaNaReaver; 08-12-2020 at 00:18.
MaNaReaver is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-12-2020 , 00:17   Re: Kicking players with cl_filterstuffcmd
Reply With Quote #2

Kicking players with this value set to 1 is immoral and most of all dumb.
__________________
fysiks is offline
MaNaReaver
Member
Join Date: Apr 2020
Location: India
Old 08-12-2020 , 00:29   Re: Kicking players with cl_filterstuffcmd
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
Kicking players with this value set to 1 is immoral and most of all dumb.
Several servers require an fps cap to prevent others from misusing on higher fps. cl_filterstuffcmd bypasses client_cmd and there's a need to kick such players.
__________________

Last edited by MaNaReaver; 08-12-2020 at 00:29.
MaNaReaver is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-12-2020 , 00:37   Re: Kicking players with cl_filterstuffcmd
Reply With Quote #4

Kick them if they have the wrong FPS then, it's that simple. But make sure to tell them what value to use.
__________________
fysiks is offline
MaNaReaver
Member
Join Date: Apr 2020
Location: India
Old 08-12-2020 , 02:16   Re: Kicking players with cl_filterstuffcmd
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
Kick them if they have the wrong FPS then, it's that simple. But make sure to tell them what value to use.
You're right, I'll change the code to check fps_max instead, thanks.
__________________
MaNaReaver is offline
Sanjay Singh
Veteran Member
Join Date: Sep 2016
Old 08-12-2020 , 02:33   Re: Kicking players with cl_filterstuffcmd
Reply With Quote #6

you cant kick player for cl_filterstuffcmd 1
__________________
Sanjay Singh is offline
Send a message via AIM to Sanjay Singh
MaNaReaver
Member
Join Date: Apr 2020
Location: India
Old 08-12-2020 , 02:36   Re: Kicking players with cl_filterstuffcmd
Reply With Quote #7

Quote:
Originally Posted by Sanjay Singh View Post
you cant kick player for cl_filterstuffcmd 1
Yeah, I read your thread on it earlier, but was confused whether it could be achieved as Borjomi used that logic in his uq_jumpstats code.
__________________
MaNaReaver is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode