Raised This Month: $ Target: $400
 0% 

Knife CFG Detector


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
xEhsaan
Member
Join Date: Mar 2015
Location: Isfahan, Iran
Old 04-17-2015 , 02:20   Knife CFG Detector
Reply With Quote #1

My first plugin is here! Knife CFG Detector Version Farhit!
Read the description and requirements below:
Code:
/**
 * CFG Detector
 * Farhit Version (20150417)
 * Requires Fakemeta, Cstrike and fakemeta_util
 *
 * Detects distance between attacker & victim using vector positions
 * You can set a value for max distance for stab or slash and block strange hits.
 * Recommended to leave settings default
 *
 * If a player exceeds max warnings, his/her knife will be stripeed for X seconds (you can set it by yourself)
 * Also, this plugin shows an alert to all peresent admins on server that a player had a strange distance kill.
 *
 * Knife distance code: SchlumPF (https://forums.alliedmods.net/showthread.php?p=825597?p=825597)
 * Edit & Add components: xEhsaan
 * Thanks to:
 * 		MohaMMadReZa [Coding advisor & Ideas]
 *		Emad (The Juggernaut) [Testing]
 * 		M@eb [Testing]
 *		Pars-Strike servers [http://pars-strike.ir]
 *
 * Console variables:
 *	cfd_max_ping 		:	Max ping for a player (more of this value, strange distance is neutral)
 *	cfd_max_loss		:	Max loss for a player
 *	cfd_max_distance_stab	:	Maximum good distance for stab (not in meters on feet, this is in units)
 *	cfd_max_distance_slash	:	Same as previous one, but for slash
 *	cfd_max_warnings 	:	Max warnings for player a then strip (0 to disable)
 *	cfd_strip_time 		:	Time to strip (in seconds) (0 to disable)
 *
 * Client commands:
 *	say /off		:	Makes a player CFG default (50% effect)
 *	cfg_reset		:	Same as the previous one
 *
 * Console Commands:
 *	amx_cfg_reset		:	[ADMIN_BAN] Reset a player CFG manually by admin. Silent parameter if set to 1, a message will be shown to the player about being reset CFG and admin who did this.
 *	amx_strip_knife		:	[ADMIN_SLAY] Stripes a player knife for X secnods.
 */
This Version is Version 1.8.3 compatible because of client_print_color.
If you want to use it on version 1.8.2, you may have troubles! If you want, you can compile source code with version 1.8.2

Compiling with 1.8.2:
Before start compiling, Open source code and change the header to this:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fakemeta>
#include <fakemeta_util.inc>
#include <colorchat>
#pragma semicolon 1 
You can find compatible colorchat in this forum.

Notes (Important Read):
  • This plugin won't block CFGs 100%. Its effect is almost 60%
  • This plugin is currently working with AMX Mod X 1.8.3 only now
  • Please feel free to post bugs ;)

Don't Use AMXX! It's not working! .amxx included for version 1.8.3
Attached Files
File Type: sma Get Plugin or Get Source (cfg_detector_v2.sma - 1109 views - 9.8 KB)
__________________
* Wait for something awesome...
* AMX Mod X Plugin Translation Repository [Paused Temporarily]
* Knife Deathmatch Shop
* Knife CFG Detector
* Looking for an idea...

Last edited by xEhsaan; 04-17-2015 at 13:13. Reason: Removed slowhack (:|)
xEhsaan is offline
Send a message via Skype™ to xEhsaan
Jhob94
AMX Mod X Moderator
Join Date: Jul 2012
Old 04-17-2015 , 05:12   Re: Knife CFG Detector
Reply With Quote #2

This isn't really trustable. Knife distance depends in many things from my tests. I remember that in furien i could kill from 5/6 metters without any cfg. And with normal speed you can reach 4 metters without cfg. It all depends on how you aim the knife and some other misc stuff.
__________________
My Plugins List | My Tutorials List
Everything that i know was self-learned with the help of this community
If you want to thank me for my plugins
donate to alliedmodders
Jhob94 is offline
xEhsaan
Member
Join Date: Mar 2015
Location: Isfahan, Iran
Old 04-17-2015 , 05:21   Re: Knife CFG Detector
Reply With Quote #3

You're absolutely right, but based on our tests, It can detect at least noobs(!) strange distances.
I tried to do my best, but as you said, it's originally based on how knife aims and it's nearly impossible (I think) to detect cheats.

But as I said, This plugin can detect 60% of unusual distances.
Thank you for your comment.
__________________
* Wait for something awesome...
* AMX Mod X Plugin Translation Repository [Paused Temporarily]
* Knife Deathmatch Shop
* Knife CFG Detector
* Looking for an idea...
xEhsaan is offline
Send a message via Skype™ to xEhsaan
Jhob94
AMX Mod X Moderator
Join Date: Jul 2012
Old 04-17-2015 , 05:42   Re: Knife CFG Detector
Reply With Quote #4

Well, the way i did to detect knife cheats when i had a server, i didn't punished any player directly from the plugin. Rather create logs so you see by yourself who has crazy distances very often.
__________________
My Plugins List | My Tutorials List
Everything that i know was self-learned with the help of this community
If you want to thank me for my plugins
donate to alliedmodders
Jhob94 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 04-17-2015 , 06:09   Re: Knife CFG Detector
Reply With Quote #5

PHP Code:
public ResetCFG(id) {
    
client_cmd(id"cl_weather 1");
    
client_cmdid"developer 0" ); // This may be make troubles for some players.
    
client_cmdid"fps_max 100" ); // Stop FPS hacks
    
client_cmdid"fps_override 0" );
    
client_cmdid"fps_modem 0.0" );
    
client_cmdid"rate 25000" );
    
client_cmdid"gl_dither 1" );
    
client_cmdid"gl_flipmatrix 0" );
    
client_cmdid"gl_fog 1" );
    
client_cmdid"gl_monolights 0" );
    
client_cmdid"gl_overbright 0" );
    
client_cmdid"gl_polyoffset -0.000010" );
    
client_cmdid"con_color ^"250 180 30^"" );
    
client_cmdid"bind ^"mouse1^" ^"+attack^"" );
    
client_cmdid"bind ^"mouse2^" ^"+attack2^"" );
    
client_cmdid"bind ^"q^" ^"lastinv^"" );
    
client_cmdid"bind ^"enter^" ^"+attack^"" );
    
client_cmdid"bind ^"ctrl^" ^"+duck^"" );
    
client_cmdid"bind ^"space^" ^"+jump^"" );

This seems to be slowhacking.
__________________
HamletEagle is online now
xEhsaan
Member
Join Date: Mar 2015
Location: Isfahan, Iran
Old 04-17-2015 , 06:22   Re: Knife CFG Detector
Reply With Quote #6

It does, but it isn't, this don't modify any speed or performance of game.
Would you please tell what codes are slowhacks?
__________________
* Wait for something awesome...
* AMX Mod X Plugin Translation Repository [Paused Temporarily]
* Knife Deathmatch Shop
* Knife CFG Detector
* Looking for an idea...
xEhsaan is offline
Send a message via Skype™ to xEhsaan
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 04-17-2015 , 06:26   Re: Knife CFG Detector
Reply With Quote #7

Any code which changes the settings of the player without asking him. Also, these commands are blocked by Valve afaik (to be executed from a plugin).
__________________
Kia is offline
xEhsaan
Member
Join Date: Mar 2015
Location: Isfahan, Iran
Old 04-17-2015 , 06:44   Re: Knife CFG Detector
Reply With Quote #8

It's no doing it without asking player. Player types /off himself, client_authorized() isn't working about it and I forgot to remove it.
__________________
* Wait for something awesome...
* AMX Mod X Plugin Translation Repository [Paused Temporarily]
* Knife Deathmatch Shop
* Knife CFG Detector
* Looking for an idea...
xEhsaan is offline
Send a message via Skype™ to xEhsaan
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 04-17-2015 , 06:57   Re: Knife CFG Detector
Reply With Quote #9

You are testing on a non steam server, because binds are blocked by valve and can't be executed from a plugin.
__________________
HamletEagle is online now
xEhsaan
Member
Join Date: Mar 2015
Location: Isfahan, Iran
Old 04-17-2015 , 08:13   Re: Knife CFG Detector
Reply With Quote #10

Oh, I didn't know that, Will it be OK if I remove client_authorized() code?
__________________
* Wait for something awesome...
* AMX Mod X Plugin Translation Repository [Paused Temporarily]
* Knife Deathmatch Shop
* Knife CFG Detector
* Looking for an idea...
xEhsaan is offline
Send a message via Skype™ to xEhsaan
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 07:21.


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