Raised This Month: $32 Target: $400
 8% 

Help about Anti Cheat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nikolov
Senior Member
Join Date: Feb 2011
Old 10-21-2013 , 17:26   Help about Anti Cheat
Reply With Quote #1

Hi AlliedModders !

I need some help about new anti cheat system. So my idea is: When someone connect to the server, the plugin send to him hack commands and when some command changed his default value to 1337, the plugin kicks the player.


PHP Code:
#include <amxmodx>

new type[33][128];

public 
plugin_init() 
    
register_plugin("Anti Cheat""0.1""nikolov")

public 
client_putinserverid 
{
    if(
task_existsid ))
        
remove_taskid );

    if (!
is_user_bot(id) && !is_user_hltv(id)) 
        
set_task0.1"hack_check"id )
}

public 
client_disconnect(id
{
    if(
task_existsid ))
        
remove_taskid );
}

public 
hack_checkid 
{    
    if( 
is_user_connectedid ) ) 
    {       
        
client_cmdid".modem 1337" );
        
query_client_cvarid".modem""bio" );
        
        
client_cmdid"001_bhop 1337" );
        
query_client_cvarid"001_bhop""kzhh" );
        
        
client_cmdid"002_bhop 1337" );
        
query_client_cvarid"002_bhop""kzhh" );
        
        
client_cmdid"kzh_bhop 1337" );
        
query_client_cvarid"kzh_bhop""kzhh" );
        
        
client_cmdid"Trk_bhop 1337" );
        
query_client_cvarid"Trk_bhop""kzhh" );
        
        
client_cmdid"m3c_bhop 1337" );
        
query_client_cvarid"m3c_bhop""trawkaa" );
        
        
client_cmdid"m4c_bhop 1337" );
        
query_client_cvarid"m4c_bhop""trawkaa" );
        
        
client_cmdid"zhy_bhop 1337" );
        
query_client_cvarid"zhy_bhop""kzhh" );
        
        
client_cmdid"zhe_bhop 1337" );
        
query_client_cvarid"zhe_bhop""kzhh" );
        
        
client_cmdid"n1k<bhop 1337" );
        
query_client_cvarid"n1k<bhop""kzhh" );
        
        
client_cmdid"nkz_bhop 1337" );
        
query_client_cvarid"nkz_bhop""kzhh" );
        
        
client_cmdid"nik_bhop 1337" );
        
query_client_cvarid"nik_bhop""kzhh" ); 
        
        
// ETC...
        // Over 150 hack commands
    
}
}

// REASONS
public kzhhid, const cvar[ ], const value[ ] ) 
{        
    if( 
value[0] != 'B' 
    {
        
type[id] = "Kreedz Hack";
        
punishid );
    }
}

public 
trawkaaid, const cvar[ ], const value[ ] ) 
{        
    if( 
value[0] != 'B' 
    {
        
type[id] = "Trawka Hack";
        
punishid );
    }
}

public 
bioid, const cvar[ ], const value[ ] ) 
{        
    if( 
value[0] != 'B' 
    {
        
type[id] = "Biotek Hack";
        
punishid );
    }
}

public 
punishid 
{
    if(
is_user_connected(id)) 
    {
        static 
Name[32], authid[32], uid;
        
        
get_user_name(idNamesizeof Name 1);
        
get_user_authid(id,authid,sizeof authid 1);
        
uid get_user_userid(id);
        
        
server_cmd"kick #%d ^"%s^""uidtype[id]);
        
client_print(0print_chat"[Anti Cheat] Player %s [%s] has been kicked for using %s."Nameauthidtype[id]);
    }


So.. Can you give me some more effective and optimized method ?

Problems:
1) reliable channel overflow
- this means: i tried to send a lot of commands to client and client got kick with this reason...
2) this version isn't optimized..



Thanks advance and sorry about my English.
nikolov is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-21-2013 , 17:30   Re: Help about Anti Cheat
Reply With Quote #2

1. overflow is due to nosteam clients, so make your server steam only and this is fixed.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 10-22-2013 , 04:50   Re: Help about Anti Cheat
Reply With Quote #3

idk about the new updates HLDS versions, but I knew a friend's server (2012) which was kicking for this same reason, even immune players.
__________________

Last edited by ANTICHRISTUS; 10-22-2013 at 05:20.
ANTICHRISTUS is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-22-2013 , 04:53   Re: Help about Anti Cheat
Reply With Quote #4

Quote:
Originally Posted by ANTICHRISTUS View Post
idk about the new updates HLDS versions, but I knew a friend's server (2012) which was kicking for this same reason, even immune players.
Not on query_client_cvar, this native is known to be kicking nosteam players.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
nikolov
Senior Member
Join Date: Feb 2011
Old 10-22-2013 , 13:16   Re: Help about Anti Cheat
Reply With Quote #5

I have not tested the first problem, but i know when we send a lot of commands the player got kick.
So, Can you give me more effective and optimized method for this plugin ?
nikolov is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 10-22-2013 , 15:48   Re: Help about Anti Cheat
Reply With Quote #6

Quote:
Originally Posted by nikolov View Post
I have not tested the first problem, but i know when we send a lot of commands the player got kick.
So, Can you give me more effective and optimized method for this plugin ?
Quote:
Originally Posted by ConnorMcLeod View Post
make your server steam only and this is fixed.
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
nikolov
Senior Member
Join Date: Feb 2011
Old 10-24-2013 , 05:52   Re: Help about Anti Cheat
Reply With Quote #7

My server is Steam Only and I don't have this problem. I just want to make new OPTIMIZED version for this anti cheat system..
nikolov is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-24-2013 , 14:32   Re: Help about Anti Cheat
Reply With Quote #8

May be it is because you query all cvars at one time.

Try this :

Spoiler



And create a file hacks_prefixes.ini in amxmodx/configs containing hacks prefixes, like this :

Spoiler
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
nikolov
Senior Member
Join Date: Feb 2011
Old 10-26-2013 , 15:08   Re: Help about Anti Cheat
Reply With Quote #9

Your plugin really looks great, but only 1st command in .ini file can be detected.
nikolov is offline
Reply


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 12:36.


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