请帮我修复

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
3
Реакции
-2
#include < amxmodx > #include < engine > const Float:INTERP_VALUE = 0.01 const Float:CHECK_INTERVAL = 30.0 public plugin_init() { register_plugin("Check Exinterp", "1.0", "Your Name") register_clcmd("checkinterp", "CheckPlayerInterp", ADMIN_CMD, "a") set_task(1.0, TASK_FOREVER, "CheckInterpTask", _, _, CHECK_INTERVAL) } public CheckPlayerInterp(id) { if (!is_user_alive(id)is_user_connected(id)) { client_print(id, print_console, "您必须活着并连接到此命令。) return PLUGIN_HANDLED } new Float:interp = get_user_cmd_value(id, "ex_interp") if (interp != INTERP_VALUE) { client_print(id, print_chat, "Your ex_interp value is not set to 0.01。英文片名You Will Be Kicked) client_print(id, print_chat, "Please set ex_interp 0.01 in your console.") server_command("kickid %d", id) } return PLUGIN_HANDLED } public CheckInterpTask() { for (new i = 1;i <= MaxClients;{ if (is_user_connected(i)) { new Float:interp = get_user_cmd_value(i, "ex_interp") if (interp != INTERP_VALUE) { client_print(i, print_chat, "Your ex_interp value is not set to 0.01。英文片名You Will Be Kicked) client_print(i, print_chat, "Please set ex_interp 0.01 in your console."server_command("kickid %d", i) } 返回 TASK_IGNORED }
 
Сообщения
2,751
Реакции
3,017
Помог
61 раз(а)
Why server should kick players for wrong 'ex_interp' value? It's client-side CVar without side effects on server.

ex_interp 0.01 value will be uncomfortable for players with high ping.
You plugin is nonsense, similar to the answer to the ChatGPT.
You don't need this plugin.

m4a1 You MUST write in English, so we can understand you.🤨
 
Последнее редактирование:
Статус
В этой теме нельзя размещать новые ответы.

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

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