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

Gstrafe & Bhop Script Detector (GBSD)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose       
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-07-2008 , 17:09   Gstrafe & Bhop Script Detector (GBSD)
Reply With Quote #1

Gstrafe & Bhop Script Detector (GBSD)
by Exolent

Description:
  • This plugin blocks scripts that will allow a person to automatically bhop or gstrafe by holding a button.
Note:
  • Read this whole post or I will not assist you in any help.
  • Please use the version 1.8.x or greater of AMXX.
FAQ:
1. What is "bhop"?
  • Bhop or "Bunny hop" is when a player uses the jump key when he/she hits the ground, and continues each time he/she lands.
  • This can be done easier than spacebar by binding mousewheel to +jump and scrolling the proper direction with the proper timing.
  • Example:
    Code:
    bind mwheeldown +jump
    With this bound, just scroll down when you land from the previous jump and you can hop like a bunny.
2. What is "gstrafe"?
  • Gstrafe or "Ground Strafing" is when a player taps the duck key when he/she is on the ground, to lift themselves off the ground.
  • This is used when a player gains high speed and can use this to keep speed across the map.
  • The easiest way to get this effect is by also binding your mousewheel to +duck.
  • Example:
    Code:
    bind mwheelup +duck
    With this bound, just scroll up quickly with high speed and you will slide across the map until the speed wears down.
3. I am not using scripts, but I am punished while bhopping/gstrafing!
  • This could be because you have a script that uses these loops while you bhop or gstrafe.
  • These scripts could be one such as a flashlight script, which spams the flashlight on/off when holding a button.
Cvars:
  • gbsd_bhop_on <0|1> - should bhop scripts be blocked? Default: 1
    • 0 = Allow bhop scripts
    • 1 = Detect bhop scripts
  • gbsd_bhop_punishment <0|1|2|3> - different types of punishments if bhop script is detected. Default: 1
    • 0 - Notify all other players
    • 1 - Slay the player
    • 2 - Kick the player
    • 3 - Ban the player (minutes defined in later cvar)
  • gbsd_bhop_bantime <#> - number of minutes a player will be banned for a bhop script if gbsd_bhop_punishment is 3. Default: 5
  • gbsd_gstrafe_on <0|1> - should gstrafe scripts be blocked? Default: 1
    • 0 = Allow gstrafe scripts
    • 1 = Detect gstrafe scripts
  • gbsd_gstrafe_punishment <0|1|2|3> - different types of punishments if gstrafe script is detected. Default: 1
    • 0 - Notify all other players
    • 1 - Slay the player
    • 2 - Kick the player
    • 3 - Ban the player (minutes defined in later cvar)
  • gbsd_gstrafe_bantime <#> - number of minutes a player will be banned for a gstrafe script if gbsd_gstrafe_punishment is 3. Default: 5
  • gbsd_bantype <1|2> - should players get banned by steamid or ip .Default: 1
    • 1 = Steamid
    • 2 = IP
  • gbsd_warntime <#> - number of seconds after a player joins the server that he will be warned that bhop scripts and gstrafe scripts are not allowed. Default: 60
Installation:
  1. Use the "Get Plugin" function at the bottom of this post.
  2. Place gbsd_v0.5.amxx in your server's addons/amxmodx/plugins folder.
  3. Open up your server's plugins.ini, located in your server's addons/amxmodx/configs folder.
  4. Inside the plugins.ini, write "gbsd_v0.5.amxx" at the last line of the file.
  5. Save the file and restart the server. (amx_rcon restart)
Changelog:
  • Version 0.1
    - Initial Release
  • Version 0.2
    - Complete rewrite
    - Fixed message bug
    - Removed gbsd_*_showmsg cvars
    - Now added check for rebuy/autobuy in cases of buying weapons
  • Version 0.3
    - Players can no longer cheat the script by aliasing the command
  • Version 0.4
    - Fixed small bugs
  • Version 0.5
    - Rewrote different detection method
    - Added gbsd_bantype cvar
Credits:
  • p3tsin
    - first script detector plugin
  • Fatalis
    - for most of the code used in his plugin
    - idea of the new detection method
Current Version: 0.5
Attached Files
File Type: sma Get Plugin or Get Source (gbsd_v0.5.sma - 12713 views - 7.3 KB)
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 04-27-2008 at 02:33. Reason: Updated to v0.5
Exolent[jNr] is offline
Old 02-07-2008, 17:10
Exolent[jNr]
This message has been deleted by Exolent[jNr].
hoboman
Senior Member
Join Date: Jul 2007
Old 02-07-2008 , 17:23   Re: Gstrafe & Bhop Script Detector (GBSD)
Reply With Quote #2

m_pitch loop, ftw

also page up, page down and backspace loops will pwn this script
__________________

Last edited by hoboman; 02-07-2008 at 17:33.
hoboman is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-07-2008 , 17:30   Re: Gstrafe & Bhop Script Detector (GBSD)
Reply With Quote #3

m_pitch loop? explain more please.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
hoboman
Senior Member
Join Date: Jul 2007
Old 02-07-2008 , 17:39   Re: Gstrafe & Bhop Script Detector (GBSD)
Reply With Quote #4

Quote:
Originally Posted by X-olent View Post
m_pitch loop? explain more please.
well i dunno how to read ur code ( I AM GONNA LEARN PAWN SOON, DAMN IT ), but my guess is that you're detecting these bunnyhop/gstrafe scripts through the way they loop a command/alias. I see that your script picks up the special, rebuy and autobuy loops, but there are other ways to make loops and get around ur script. The four other loops are made with m_pitch, the backspace key and the page up/down keys.

Note how in CS you don't have to tap the backspace key to delete what you previous wrote ( in-game ) but you have to tap the "a" key to make a long line of "aaaaaaa"s.

If you wanna learn about HL scripting and all that you can loop shit up here: http://scripting.elxdraco.net/forum/
i used to use it when i was a script nub
__________________
hoboman is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-07-2008 , 17:42   Re: Gstrafe & Bhop Script Detector (GBSD)
Reply With Quote #5

Lot of code is from Fatalis plugin.
http://xtreme-jumps.eu/e107_plugins/...opic.php?52518


m_pitch doesn't work fine.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 02-07-2008 at 17:54.
ConnorMcLeod is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-07-2008 , 19:17   Re: Gstrafe & Bhop Script Detector (GBSD)
Reply With Quote #6

the only one that i didnt detect that you listed and seems usefull is the m_pitch
but according to connorr, its not effective.

the other 3 keys are in strange locations to use while trying to run/strafe
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
chris
Senior Member
Join Date: Mar 2007
Location: America
Old 02-07-2008 , 21:39   Re: Gstrafe & Bhop Script Detector (GBSD)
Reply With Quote #7

NIce plugin +Karma, goign to use on my server soon
__________________
chris is offline
Send a message via AIM to chris
hasta
Senior Member
Join Date: Aug 2004
Location: Ukraine, Kyiv
Old 02-08-2008 , 08:52   Re: Gstrafe & Bhop Script Detector (GBSD)
Reply With Quote #8

Error
Quote:
/home/groups/alliedmodders/forums/files/2/5/1/6/5/23458.attach(5 : error 017: undefined symbol "charsmax"
/home/groups/alliedmodders/forums/files/2/5/1/6/5/23458.attach(62) : error 017: undefined symbol "charsmax"
/home/groups/alliedmodders/forums/files/2/5/1/6/5/23458.attach(69) : error 017: undefined symbol "charsmax"
/home/groups/alliedmodders/forums/files/2/5/1/6/5/23458.attach(152) : error 017: undefined symbol "charsmax"
/home/groups/alliedmodders/forums/files/2/5/1/6/5/23458.attach(180) : error 017: undefined symbol "charsmax"
/home/groups/alliedmodders/forums/files/2/5/1/6/5/23458.attach(181) : warning 213: tag mismatch
/home/groups/alliedmodders/forums/files/2/5/1/6/5/23458.attach(181) : warning 213: tag mismatch
/home/groups/alliedmodders/forums/files/2/5/1/6/5/23458.attach(181) : warning 213: tag mismatch
/home/groups/alliedmodders/forums/files/2/5/1/6/5/23458.attach(181) : warning 213: tag mismatch
/home/groups/alliedmodders/forums/files/2/5/1/6/5/23458.attach(190) : error 017: undefined symbol "charsmax"
/home/groups/alliedmodders/forums/files/2/5/1/6/5/23458.attach(199) : error 017: undefined symbol "charsmax"
/home/groups/alliedmodders/forums/files/2/5/1/6/5/23458.attach(200) : warning 213: tag mismatch
/home/groups/alliedmodders/forums/files/2/5/1/6/5/23458.attach(200) : warning 213: tag mismatch
/home/groups/alliedmodders/forums/files/2/5/1/6/5/23458.attach(200) : warning 213: tag mismatch
/home/groups/alliedmodders/forums/files/2/5/1/6/5/23458.attach(216) : error 017: undefined symbol "charsmax"
hasta is offline
Send a message via ICQ to hasta
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 02-08-2008 , 10:16   Re: Gstrafe & Bhop Script Detector (GBSD)
Reply With Quote #9

Either put this at the top of the file or compile the plugin using AMXx1.8

PHP Code:
#define charsmax(%1) sizeof(%1)-1 
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 02-08-2008 , 11:35   Re: Gstrafe & Bhop Script Detector (GBSD)
Reply With Quote #10

Add a check for version.

Did you test this?
Code:
[GBSD]  was ed for using a  Script. (Loop:
That's nice.

Last edited by [ --<-@ ] Black Rose; 02-08-2008 at 12:10.
[ --<-@ ] Black Rose 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 09:34.


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