AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   anti hack plugin (https://forums.alliedmods.net/showthread.php?t=26781)

Anthraxnz 04-09-2006 06:46

anti hack plugin
 
iv got an idea for a anti cheat plugin.

is it possible to check for client cvars like aim = 1 or wallhax = 1 or something like that?

i tried using get_user_info() using "sv_aim 1" as my test cvar but it didnt work regaurdless of whether it was 1 or 0.

if i can figure out how to get it checking cvars then i can write like a dictionary file for hack cvars then when the hacker connects they get kicked off.

p3tsin 04-09-2006 08:00

Code:
query_client_cvar(id, "wallhax", "result_func") .. public result_func(id, const cvar[], const value[]) {     new num = str_to_num(value)     if(num > 0) {         //kick player or w/e     } }

btw, i think sv_aim is only working for clients when server has sv_cheats enabled :o

VEN 04-09-2006 08:21

sv_aim is a server's cvar

Twilight Suzuka 04-09-2006 12:41

Not to mention, not a whole lot of hacks register client cvar's anymore.

Anthraxnz 04-09-2006 16:05

i downloaded like 3 or 4 of em and read the .cfg files they all seemed to have cvars in them such as aim = 0 and aimthru = 0 which is a constant pretty much over all the hax i looked at.

Twilight Suzuka 04-09-2006 16:07

Those are not cvar's; they don't get registered into the client cvar system, they get registered into the hacks own system.

ev0d00b 04-09-2006 23:09

what you should try do is:

get_user_aiming, and then get the user hitbox, and time how long it takes to get to head like make a reaction time 0.1 or less then give him 3 goes per round if the player gets 3 hs's in less then 0.1 seconds then auto ban, after 1 or 2 it sends a message to an admin. :)

anyway good luck anthrax <3.

Anthraxnz 04-09-2006 23:25

another good idea of mine foiled by not being a gayz0r h4x0r :(

wish i had a magic device that knows whos hacking and who isnt.

Twilight Suzuka 04-09-2006 23:48

I can provide one.

Wolle 04-10-2006 07:15

Quote:

Originally Posted by Twilight Suzuka
I can provide one.

I'm listening.


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

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