Raised This Month: $ Target: $400
 0% 

Anti CD HACK Plugin :)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Veskoto
BANNED
Join Date: Feb 2009
Old 02-16-2009 , 03:47   Anti CD HACK Plugin :)
#1

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!

Last edited by Veskoto; 02-16-2009 at 04:01.
Veskoto is offline
Send a message via Skype™ to Veskoto
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:57.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode