#include amxmodx
new iFps_kick;
public plugin_init()
{
register_plugin("FPS kick", "1.0", "SPiNX");
iFps_kick = register_cvar("fps_kick","200")
}
public client_command(id)
{
if(is_user_connected(id) && !is_user_bot(id) )
query_client_cvar(id, "fps_max", "cvar_result_func");
}
public cvar_result_func(id, const cvar[], const value[])
{
if(equali(cvar,"fps_max") && str_to_num(value) > get_pcvar_num(iFps_kick) || !is_str_num(value) )
server_cmd("kick #%d Your %s is %i. Do not use over %i", get_user_userid(id), cvar, str_to_num(value), get_pcvar_num(iFps_kick));
}