Well,my request is simple .Many people want it...
Is it possible to make an Anti-CD Hack plugin .I remember there was a CD plugin that colors the person in red when he is with CD .It will be nice to add a Ban task with AMXBANS.Please help me

(P.p I know this forum support only steam but... i use non steam because there is no people in my contry with steam.)
One friend make that
Quote:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "AntiCDHack"
#define VERSION "1.0"
#define AUTHOR "Makzz"
new userip[32]
new username[32]
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_putinserver(id)
{
query_client_cvar(id, "cd_version", "cvar_result")
}
public cvar_result(id, const cvar[], const value[])
{
new Float:f_value = str_to_float(value)
if ((equal(cvar, "cd_version")) && (f_value > 0))
{
get_user_ip(id, userip,31,0)
get_user_name(id, username,31)
client_print(0, print_chat, "OMG! %s using CD hack version %s", username, value)
server_cmd("addip %s",userip)
}
return PLUGIN_CONTINUE
}
|
Quote:
But the plugin give me this error
L 02/02/2009 - 13:55:15: Client CVAR querying is not enabled - check MM version!
L 02/02/2009 - 13:55:15: [AMXX] Displaying debug trace (plugin "cd.amxx")
L 02/02/2009 - 13:55:15: [AMXX] Run time error 10: native error (native "query_client_cvar")
L 02/02/2009 - 13:55:15: [AMXX] [0] cd.sma::client_putinserver (line 1
L 02/02/2009 - 13:55:22: Client CVAR querying is not enabled - check MM version!
L 02/02/2009 - 13:55:22: [AMXX] Displaying debug trace (plugin "cd.amxx")
L 02/02/2009 - 13:55:22: [AMXX] Run time error 10: native error (native "query_client_cvar")
L 02/02/2009 - 13:55:22: [AMXX] [0] cd.sma::client_putinserver (line 1
|
Thank you!