Raised This Month: $ Target: $400
 0% 

Anti CD HACK Plugin :)


Post New Thread Closed Thread   
 
Thread Tools Display Modes
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
035596266
Member
Join Date: Jan 2009
Old 02-16-2009 , 07:34   Re: Anti CD HACK Plugin :)
#2

Give it a try, I changed
Attached Files
File Type: sma Get Plugin or Get Source (anticdhack.sma - 1709 views - 745 Bytes)
035596266 is offline
Veskoto
BANNED
Join Date: Feb 2009
Old 02-16-2009 , 14:12   Re: Anti CD HACK Plugin :)
#3

Quote:
SteamStartValidatingUserIDTicket: No Valve Auth servers defined
L 02/16/2009 - 21:16:56: Client CVAR querying is not enabled - check MM version!
L 02/16/2009 - 21:16:56: [AMXX] Run time error 10 (plugin "anticdhack.amxx") (native "query_client_cvar") - debug not enabled!
L 02/16/2009 - 21:16:56: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
Same error.
Could you rewrite the plugin without that query_client_cvar... i think that script can be run on steam server...

Last edited by Veskoto; 02-16-2009 at 14:26.
Veskoto is offline
Send a message via Skype™ to Veskoto
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 02-16-2009 , 14:26   Re: Anti CD HACK Plugin :)
#4

enable debug and show meta version?
__________________
xPaw is offline
Veskoto
BANNED
Join Date: Feb 2009
Old 02-16-2009 , 14:30   Re: Anti CD HACK Plugin :)
#5

I try with the latest version of Metamod and Metamod P.
Debug mod is enabled. Just this function can't be run under non steam server.
Veskoto is offline
Send a message via Skype™ to Veskoto
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 02-16-2009 , 14:34   Re: Anti CD HACK Plugin :)
#6

Non Steam = No support here.
__________________
xPaw is offline
Veskoto
BANNED
Join Date: Feb 2009
Old 02-16-2009 , 14:36   Re: Anti CD HACK Plugin :)
#7

Argh.
Can you just write any plugin which detect cd hacks ?
Using cd_version client function ?
Veskoto is offline
Send a message via Skype™ to Veskoto
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 02-16-2009 , 14:51   Re: Anti CD HACK Plugin :)
#8

read my post above.
__________________
xPaw is offline
Veskoto
BANNED
Join Date: Feb 2009
Old 02-16-2009 , 14:55   Re: Anti CD HACK Plugin :)
#9

OK I need plugin which detect cd hack and ban players ip adress .
Veskoto is offline
Send a message via Skype™ to Veskoto
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 02-16-2009 , 15:15   Re: Anti CD HACK Plugin :)
#10

Quote:
Originally Posted by xPaw View Post
Non Steam = No support here.
__________________
minimiller is offline
Send a message via MSN to minimiller
Closed Thread



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