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

Antihack Speed v1.0


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management       
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 01-14-2012 , 10:32   Antihack Speed v1.0
Reply With Quote #1

Antihack Speed
version: 1.0 - Author: Dias

1. Description
- This is a plugin that can block hack speed from your server with easy method
- Check current origin. Wait 1 second. and check again. if larger than 250 (cvar). Kick, because no one can run 250m per a second

2. Cvars
- sv_antihack_speed // Enable Antihack-Speed | 1 = ON, 2 = OFF
- sv_antihack_speed_code // Distance from old and new origin to detect hack | Default: 250.0
- sv_antihack_ban_minutes // Ban time (minute) | Default: 10

3. Test
http://www.youtube.com/watch?v=DfJVHh0ZUF0

- I knew there are a lot of anti hack plugin...

Attached Files
File Type: sma Get Plugin or Get Source (amx_antihack_speed.sma - 1369 views - 1.9 KB)

Last edited by dias; 01-14-2012 at 10:51.
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
fantarn
Member
Join Date: Feb 2011
Old 01-14-2012 , 10:46   Re: Antihack Speed v1.0
Reply With Quote #2

Quote:
because no one can run 250m per a second
with scout your speed is 260.
fantarn is offline
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 01-14-2012 , 10:51   Re: Antihack Speed v1.0
Reply With Quote #3

250 is not player speed. That is the distance from old origin and new origin

Last edited by dias; 01-14-2012 at 10:51.
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
Kiske
Veteran Member
Join Date: May 2009
Old 01-14-2012 , 11:08   Re: Antihack Speed v1.0
Reply With Quote #4

What if the player has a lot of lag ?
Kiske is offline
Send a message via Skype™ to Kiske
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 01-14-2012 , 11:10   Re: Antihack Speed v1.0
Reply With Quote #5

example ?
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 01-14-2012 , 11:23   Re: Antihack Speed v1.0
Reply With Quote #6

For the ping lag, you can try this:

Cvar: amx_antihack_min_ping - 100

Code:
#include <amxmodx> #include <engine> #include <fakemeta> new Float:g_lastcheck[33], Float:g_lastcheck2[33] new Float:g_cur_origin[33][3] new Float:g_vic_origin[33][3] new antihack_active new cvar_antispeed, cvar_antispeed_code, cvar_ban_minutes, cvar_min_ping public plugin_init() {     register_plugin("AntiHack Speed", "1.0", "Dias")         register_event("HLTV", "event_newround", "a", "1=0", "2=0")     register_logevent("event_round_end", 2, "1=Round_End")     register_event("TextMsg","event_round_end","a","2=#Game_Commencing","2=#Game_will_restart_in")         cvar_antispeed = register_cvar("sv_antihack_speed", "1")     cvar_antispeed_code = register_cvar("sv_antihack_speed_code", "250.0")     cvar_ban_minutes = register_cvar("sv_antihack_ban_minutes", "10")     cvar_min_ping = register_cvar("amx_antihack_min_ping", "100") } public plugin_cfg() {     set_task(1.0, "event_newround") } public event_newround(id) {     set_task(1.0, "active_antihack", id) } public event_round_end(id) {     antihack_active = 0 } public active_antihack(id) {     antihack_active = 1     g_vic_origin[id] = g_cur_origin[id] } public client_PostThink(id) {     if(is_user_alive(id) && antihack_active && get_pcvar_num(cvar_antispeed))     {         static Float:Current_Time         Current_Time = get_gametime()                 if(Current_Time - 0.5 > g_lastcheck[id])         {             pev(id, pev_origin, g_cur_origin[id])             g_lastcheck[id] = Current_Time         }                 if(Current_Time - 1.0 > g_lastcheck2[id])         {             check_origin(id)             g_lastcheck2[id] = Current_Time         }        } } public check_origin(id) {     static Float:distance         pev(id, pev_origin, g_vic_origin[id])     distance = get_distance_f(g_cur_origin[id], g_vic_origin[id])     if(distance > get_pcvar_float(cvar_antispeed_code) && pev(id, pev_flags) & FL_ONGROUND)     {         new Ping, Loss         get_user_ping(id, Ping, Loss)                 if(Ping >= cvar_min_ping)             return;                 static name[32]         get_user_name(id, name, sizeof(name))                 server_cmd("amx_banip %s %s Hack_Speed_Detect", get_pcvar_num(cvar_ban_minutes), name)     } }
__________________

Last edited by kramesa; 01-14-2012 at 11:33.
kramesa is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 01-14-2012 , 11:49   Re: Antihack Speed v1.0
Reply With Quote #7

Terrible method.
__________________
xPaw is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 01-14-2012 , 11:54   Re: Antihack Speed v1.0
Reply With Quote #8

Quote:
Originally Posted by xPaw View Post
Terrible method.
Terrible method of detection speed hack or ping?
__________________
kramesa is offline
brian201049
Member
Join Date: Mar 2011
Location: Hong Kong
Old 01-14-2012 , 12:02   Re: Antihack Speed v1.0
Reply With Quote #9

I suggest you to change this plugin's punishment to slay.

If a player slayed three times or more, the plugin will make a vote for all players to vote ban the cheater.

Another question, I am running a zombie plague server. Should I change the sv_antihack_speed_code value to the fastest zombie's speed value?

Does your plugin will ban the player who use the vehicle make a larger than sv_antihack_speed_code distance?

Why don't enable VAC?

Last edited by brian201049; 01-14-2012 at 12:08.
brian201049 is offline
xLeoNNN
Veteran Member
Join Date: Sep 2010
Location: de_dust2
Old 01-14-2012 , 12:04   Re: Antihack Speed v1.0
Reply With Quote #10

If I have 500 speed (set by a plugin) this plugin ban me ? (i have a superhero server)

good plugin =)
__________________
xLeoNNN is offline
Send a message via MSN to xLeoNNN
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 05:34.


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