detect cl_filterstuffcmd 1

Сообщения
33
Реакции
-5
Помог
2 раз(а)
Возможно ли как то создать детектор cl_filterstuffcmd 1? Сколько я бы не пытался, плагины не могут словить значение этого квара, не детектит. Помогите!
 
Сообщения
278
Реакции
137
Maybe; (not tested)

Код:
#pragma semicolon 1

#include <amxmodx>

public plugin_init() {
        register_plugin("Detect FTC", "1.0", "PurposeLess");
}
public client_putinserver(id)
{
        set_task(5.0, "@check_ftc", id, .flags = "b");
}
public client_disconnected(id)
{
        remove_task(id);
}
@check_ftc(const id)
{
        query_client_cvar(id, "cl_filterstuffcmd", "@cl_filterstuffcmd");
}
@cl_filterstuffcmd(const id, const cvar, const val[])
{
        new value = str_to_num(val);

        if(value) // Check if cl_filterstuffcmd is 1
        {
                return;
        }

        client_cmd(id, "cl_filterstuffcmd 1");
        console_print(id, "Please do not change cl_filterstuffcmd command.");
}
 
Последнее редактирование:
Сообщения
28
Реакции
5
motalovoxd, You can try ACC.
Link: https://dev-cs.ru/resources/319/
This plugin can detect the cvars exactly you want.

fps_max
fps_override
ex_interp
etc. (I didn't try cl_filterstuffcmd, but i think it's same) ?

And you can also set the recheck time:
RECHECK_DELAY 300.0 // через сколько начать повторную проверку

Attach files is my setting, You can also set youself
 

Download all Attachments

Последнее редактирование:
Сообщения
584
Реакции
343
Предупреждения
1
Помог
9 раз(а)
motalovoxd, i think it's impossible. I'm not sure
 
Сообщения
25
Реакции
7
Some CVars are restricted from being queried, at least if you run a modern Steam client. For this last (cl_filterstuffcmd), the result will be "CVAR is privilegied".
I personnaly do not see the point for a CVar like this to be "privilegied" and restricted to be queriable from the server, as this won't prevent admins to throw some clients commands in force (even if not working) no matter what.
Only some CVars holding password things should be with such status.
But well, VALVe does not always do things intelligently.
 

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу