Closed NiceFeatures closed 6 months ago
This is an amxmodx bug, not related to metamod-r.
C_CvarValue2
callback does not check that player can be disconnected instantly.
You should send a bug report in amxmodx
p.s As a temporary workaround, you can make a delayed kick in 0.1 secs
Reported, thanks.
Contact Details (optional)
What happened?
If use this query the server crashes in few minutes.
include
include
include
public plugin_init() { register_plugin("Query cvar", "1.0", "GH") }
public client_putinserver(id) { set_task_ex(10.0, "CheckCvars", id, .flags = SetTask_Once) }
public CheckCvars(id) { if(is_user_connected(id)) { query_client_cvar(id, "cl_minmodels", "OnClMinModels_CallBack") } }
public OnClMinModels_CallBack(id, const Cvar[], const Value[]) { if (equal(Cvar, "cl_minmodels")) if(str_to_num(Value) != 0) rh_drop_client(id, fmt("Proibido usar cl_minmodels 1, mude para 0")) }
Here the log https://hastebin.com/share/sadelayefu.vbnet
Metamod-r Version
1.3.0.138 (Default)
AMX Mod X Version
1.10.x
What engine are you seeing the problem on?
reHLDS
What version of engine are you seeing the problem on?
reHLDS (3.13.0.788)
What OS are you seeing the problem on?
Linux
What OS version are you seeing the problem on?
Other Linux
Relevant log output