#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 }