AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Anti CD HACK Plugin :) (https://forums.alliedmods.net/showthread.php?t=85783)

Veskoto 02-16-2009 03:47

Anti CD HACK Plugin :)
 
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 1http://reallite.cs2.ru/modules/Forum.../icon_cool.gif
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 1http://reallite.cs2.ru/modules/Forum.../icon_cool.gif
Thank you!:)

035596266 02-16-2009 07:34

Re: Anti CD HACK Plugin :)
 
1 Attachment(s)
Give it a try, I changed

Veskoto 02-16-2009 14:12

Re: Anti CD HACK Plugin :)
 
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...

xPaw 02-16-2009 14:26

Re: Anti CD HACK Plugin :)
 
enable debug and show meta version?

Veskoto 02-16-2009 14:30

Re: Anti CD HACK Plugin :)
 
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.

xPaw 02-16-2009 14:34

Re: Anti CD HACK Plugin :)
 
Non Steam = No support here.

Veskoto 02-16-2009 14:36

Re: Anti CD HACK Plugin :)
 
Argh.
Can you just write any plugin which detect cd hacks ?
Using cd_version client function ?:)

xPaw 02-16-2009 14:51

Re: Anti CD HACK Plugin :)
 
read my post above.

Veskoto 02-16-2009 14:55

Re: Anti CD HACK Plugin :)
 
OK :) I need plugin which detect cd hack and ban players ip adress . :crab:

minimiller 02-16-2009 15:15

Re: Anti CD HACK Plugin :)
 
Quote:

Originally Posted by xPaw (Post 762709)
Non Steam = No support here.



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

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