Raised This Month: $12 Target: $400
 3% 

Anti KZhack by Niscree v5.3


Post New Thread Reply   
 
Thread Tools Display Modes
xStk
Member
Join Date: Jun 2011
Old 09-10-2011 , 13:21   Re: Anti KZhack by Niscree v5.3
Reply With Quote #61

i need to open the KZHackers.txt log?
xStk is offline
xStk
Member
Join Date: Jun 2011
Old 09-10-2011 , 13:30   Re: Anti KZhack by Niscree v5.3
Reply With Quote #62

Quote:
Originally Posted by niscree View Post
PHP Code:
#include <amxmodx>
#include <colorchat>
 
#define PLUGIN     "Anti KzH"
#define VERSION    "5.0"
#define AUTHOR     "unknown"
 
new reason[23][128]
new 
g_szLog[128]
 
public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
 
    
get_localinfo("amxx_datadir"g_szLogcharsmax(g_szLog))
    
add(g_szLogcharsmax(g_szLog), "/KZHackers.txt")
}
 
public 
client_putinserver(id) {
    
remove_task(id)
    
set_task(0.1"kzh_check"id)
}
 
public 
kzh_check(id) {
    if(
is_user_connected(id))
    {
        
query_client_cvar(id"kzh_bhop""kzh")
        
query_client_cvar(id"kyk_bhop""kyk")
        
query_client_cvar(id"m4c_bhop""trk")
        
query_client_cvar(id"zhy_bhop""zhyk")
        
query_client_cvar(id"zhe_hope""zhyk")
        
query_client_cvar(id"zhykz_bhop""zhyk")
        
query_client_cvar(id"^^_^^<bhop""nkz")
        
query_client_cvar(id"n1k<bhop""nkz")
        
query_client_cvar(id"nkz_bhop""nkz")
        
query_client_cvar(id"nik_bhop""nkz")
        
query_client_cvar(id"fpt_bhop""kzc")
        
query_client_cvar(id"str_bhop""kzc")
        
query_client_cvar(id"fuh_hope""kzc")
        
query_client_cvar(id"vip_hope""kzc")
        
query_client_cvar(id"kid_bhop""kzc")
        
query_client_cvar(id"tvx_bhop""kzc")
        
query_client_cvar(id"1337_bhop""kzc")
        
query_client_cvar(id"LoveFpteam_bhop""kzc")
        
query_client_cvar(id"xhack_bhop""xhz")
        
query_client_cvar(id"speed_bhop""xhz")
        
query_client_cvar(id"xn1ko_bhop""xhz")
        
query_client_cvar(id"xPr9n_bhop""xhz")
        
query_client_cvar(id"fptch_bhop""xhz")
        
query_client_cvar(id"xhz_bhop""xhz")
        
query_client_cvar(id"xkz_bhop""xhz")
        
query_client_cvar(id"xcfgbhop""xhz")
    }
}
 
public 
kzh(id, const cvar[ ], const value[ ] ) {
    if( 
value[0] != 'B' ) {
    
reason[id] = "KZHack"
    
punish(id)
    }
    return 
PLUGIN_HANDLED
}
public 
kyk(id, const cvar[ ], const value[ ] ) {
    if( 
value[0] != 'B' ) {
    
reason[id] = "KykHack"
    
punish(id)
    }
    return 
PLUGIN_HANDLED
}
public 
trk(id, const cvar[ ], const value[ ] ) {
    if( 
value[0] != 'B' ) {
    
reason[id] = "TrawkaHack"
    
punish(id)
    }
    return 
PLUGIN_HANDLED
}
public 
zhyk(id, const cvar[ ], const value[ ] ) {
    if( 
value[0] != 'B' ) {
    
reason[id] = "ZhykHack"
    
punish(id)
    }
    return 
PLUGIN_HANDLED
}
public 
nkz(id, const cvar[ ], const value[ ] ) {
    if( 
value[0] != 'B' ) {
    
reason[id] = "N1kZHack"
    
punish(id)
    }
    return 
PLUGIN_HANDLED
}
public 
kzc(id, const cvar[ ], const value[ ] ) {
    if( 
value[0] != 'B' ) {
    
reason[id] = "KZHack."
    
punish(id)
    }
    return 
PLUGIN_HANDLED
}
public 
xhz(id, const cvar[ ], const value[ ] ) {
    if( 
value[0] != 'B' ) {
    
reason[id] = "xHack"
    
punish(id)
    }
    return 
PLUGIN_HANDLED
}
 
public 
punish(id)
{
    if(
is_user_connected(id))
    {
        new 
szDate[20], szName[32], szAuthid[32], szIP[16]
        
get_time("%m/%d/%y %H:%M:%S"szDatecharsmax(szDate))
        
get_user_name(idszNamecharsmax(szName))
        
get_user_authid(idszAuthidcharsmax(szAuthid))
        
get_user_ip(idszIPcharsmax(szIP), 1)
 
        new 
szText[128]
        
formatex(szTextcharsmax(szText), "%s |%-34s|%-24s|%-15s| ^"%s^""szDateszNameszAuthidszIPreason[id])
        
write_file(g_szLogszText, -1)
 
        
ColorChat(0BLUE,"%s is using %s!!!"szNamereason[id])
        
ColorChat(0RED"%s is using %s!!!"szNamereason[id])
 
        
server_cmd("amx_ban 0 %s ^"%s Detected^""szAuthidreason[id])
    }

...

cant to compile it alot errors
xStk is offline
niscree
Junior Member
Join Date: Oct 2010
Location: Poland
Old 09-10-2011 , 13:31   Re: Anti KZhack by Niscree v5.3
Reply With Quote #63

Quote:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Header size: 688 bytes
Code size: 5856 bytes
Data size: 14952 bytes
Stack/heap size: 16384 bytes; max. usage is unknown, due to recursion
Total requirements: 37880 bytes
Done.
niscree is offline
Send a message via Skype™ to niscree
xStk
Member
Join Date: Jun 2011
Old 09-10-2011 , 13:36  
Reply With Quote #64

k now is work
i neeed to open the log file?

dude this is not detecteted
nothing

can some one help me
? is not work

Last edited by xPaw; 09-11-2011 at 14:24. Reason: Merged posts
xStk is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-11-2011 , 11:44   Re: Anti KZhack by Niscree v5.3
Reply With Quote #65

Stop to flood. Edit your message using the EDIT button.
__________________
Arkshine is offline
nkz1337
BANNED
Join Date: Apr 2011
Old 09-12-2011 , 06:11   Re: Anti KZhack by Niscree v5.3
Reply With Quote #66

Code:
tvx_bhop
xcfgbhop
my hacks =D
nkz1337 is offline
Send a message via Skype™ to nkz1337
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-12-2011 , 12:00   Re: Anti KZhack by Niscree v5.3
Reply With Quote #67

I think that you don't know that : you can pass an extra argument to query_client_cvar, so you could put the reason into it, instead of make multiple similar callbacks.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
trup1k
Member
Join Date: Nov 2009
Old 09-12-2011 , 13:08   Re: Anti KZhack by Niscree v5.3
Reply With Quote #68

Quote:
Originally Posted by ConnorMcLeod View Post
I think that you don't know that : you can pass an extra argument to query_client_cvar, so you could put the reason into it, instead of make multiple similar callbacks.
can you give an example?
trup1k is offline
kanqz
Member
Join Date: Apr 2010
Location: Portugal
Old 09-16-2011 , 18:07   Re: Anti KZhack by Niscree v5.3
Reply With Quote #69

Quote:
Originally Posted by trup1k View Post
PHP Code:
#include <amxmodx>
#include <chatcolor>

#define PLUGIN     "Anti KzH"
#define VERSION    "5.0"
#define AUTHOR     "unknown"

new reason[23][128]
new 
g_szLog[128]

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
get_localinfo("amxx_datadir"g_szLogcharsmax(g_szLog))
    
add(g_szLogcharsmax(g_szLog), "/KZHackers.txt")
}
    
public 
client_putinserver(id) {
    
remove_task(id)
    
set_task(0.1"kzh_check"id)
}

public 
kzh_check(id) {
    if(
is_user_connected(id))
    {
        
query_client_cvar(id"kzh_bhop""kzh")
        
query_client_cvar(id"kyk_bhop""kyk")
        
query_client_cvar(id"m4c_bhop""trk")
        
query_client_cvar(id"zhy_bhop""zhyk")
        
query_client_cvar(id"zhe_hope""zhyk")
        
query_client_cvar(id"zhykz_bhop""zhyk")
        
query_client_cvar(id"^^_^^<bhop""nkz")
        
query_client_cvar(id"n1k<bhop""nkz")
        
query_client_cvar(id"nkz_bhop""nkz")
        
query_client_cvar(id"nik_bhop""nkz")
        
query_client_cvar(id"fpt_bhop""kzc")
        
query_client_cvar(id"str_bhop""kzc")
        
query_client_cvar(id"fuh_hope""kzc")
        
query_client_cvar(id"vip_hope""kzc")
        
query_client_cvar(id"kid_bhop""kzc")
        
query_client_cvar(id"tvx_bhop""kzc")
        
query_client_cvar(id"1337_bhop""kzc")
        
query_client_cvar(id"LoveFpteam_bhop""kzc")
        
query_client_cvar(id"xhack_bhop""xhz")
        
query_client_cvar(id"speed_bhop""xhz")
        
query_client_cvar(id"xn1ko_bhop""xhz")
        
query_client_cvar(id"xPr9n_bhop""xhz")
        
query_client_cvar(id"fptch_bhop""xhz")
        
query_client_cvar(id"xhz_bhop""xhz")
        
query_client_cvar(id"xkz_bhop""xhz")
        
query_client_cvar(id"xcfgbhop""xhz")
    }
}

public 
kzh(id, const cvar[ ], const value[ ] ) {
    if( 
value[0] != 'B' ) {
    
reason[id] = "KZHack"
        
punish(id)
    }
    return 
PLUGIN_HANDLED
}
public 
kyk(id, const cvar[ ], const value[ ] ) {
    if( 
value[0] != 'B' ) {
    
reason[id] = "KykHack"
        
punish(id)
    }
    return 
PLUGIN_HANDLED
}
public 
trk(id, const cvar[ ], const value[ ] ) {
    if( 
value[0] != 'B' ) {
    
reason[id] = "TrawkaHack"
        
punish(id)
    }
    return 
PLUGIN_HANDLED
}
public 
zhyk(id, const cvar[ ], const value[ ] ) {
    if( 
value[0] != 'B' ) {
    
reason[id] = "ZhykHack"
        
punish(id)
    }
    return 
PLUGIN_HANDLED
}
public 
nkz(id, const cvar[ ], const value[ ] ) {
    if( 
value[0] != 'B' ) {
    
reason[id] = "N1kZHack"
        
punish(id)
    }
    return 
PLUGIN_HANDLED
}
public 
kzc(id, const cvar[ ], const value[ ] ) {
    if( 
value[0] != 'B' ) {
    
reason[id] = "KZHack."
        
punish(id)
    }
    return 
PLUGIN_HANDLED
}
public 
xhz(id, const cvar[ ], const value[ ] ) {
    if( 
value[0] != 'B' ) {
    
reason[id] = "xHack"
        
punish(id)
    }
    return 
PLUGIN_HANDLED
}

public 
punish(id)
{
    if(
is_user_connected(id))
    {
        new 
szDate[20], szName[32], szAuthid[32], szIP[16]
        
get_time("%m/%d/%y %H:%M:%S"szDatecharsmax(szDate))
        
get_user_name(idszNamecharsmax(szName))
        
get_user_authid(idszAuthidcharsmax(szAuthid))
        
get_user_ip(idszIPcharsmax(szIP), 1)
        
        new 
szText[128]
        
formatex(szTextcharsmax(szText), "%s |%-34s|%-24s|%-15s| ^"%s^""szDateszNameszAuthidszIPreason[id])
        
write_file(g_szLogszText, -1)

        
client_print_color(0BLUE,"%s is using %s!!!"szNamereason[id])
        
client_print_color(0RED"%s is using %s!!!"szNamereason[id])

        
server_cmd("amx_ban 0 %s ^"%s Detected^""szAuthidreason[id])
    }

hi , i use this but not ban. I use AMXBans.
__________________
kanqz is offline
gamer99
Senior Member
Join Date: Jul 2011
Old 09-19-2011 , 05:57   Re: Anti KZhack by Niscree v5.3
Reply With Quote #70

which version of amx_ban you use ?

What is teh exact command to ban somebody with that. Post that i will try to fix it for you.
__________________
Thanks and regards,
Gamer99
gamer99 is offline
Reply



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 19:00.


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