AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Gstrafe & Bhop Script Detector (GBSD) (https://forums.alliedmods.net/showthread.php?t=66741)

Exolent[jNr] 02-07-2008 17:09

Gstrafe & Bhop Script Detector (GBSD)
 
1 Attachment(s)
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.:rtfm:
  • 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

hoboman 02-07-2008 17:23

Re: Gstrafe & Bhop Script Detector (GBSD)
 
m_pitch loop, ftw

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

Exolent[jNr] 02-07-2008 17:30

Re: Gstrafe & Bhop Script Detector (GBSD)
 
m_pitch loop? explain more please.

hoboman 02-07-2008 17:39

Re: Gstrafe & Bhop Script Detector (GBSD)
 
Quote:

Originally Posted by X-olent (Post 582672)
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 :P

ConnorMcLeod 02-07-2008 17:42

Re: Gstrafe & Bhop Script Detector (GBSD)
 
Lot of code is from Fatalis plugin.
http://xtreme-jumps.eu/e107_plugins/...opic.php?52518


m_pitch doesn't work fine.

Exolent[jNr] 02-07-2008 19:17

Re: Gstrafe & Bhop Script Detector (GBSD)
 
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

chris 02-07-2008 21:39

Re: Gstrafe & Bhop Script Detector (GBSD)
 
NIce plugin :D +Karma, goign to use on my server soon

hasta 02-08-2008 08:52

Re: Gstrafe & Bhop Script Detector (GBSD)
 
Error
Quote:

/home/groups/alliedmodders/forums/files/2/5/1/6/5/23458.attach(58) : 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"

YamiKaitou 02-08-2008 10:16

Re: Gstrafe & Bhop Script Detector (GBSD)
 
Either put this at the top of the file or compile the plugin using AMXx1.8

PHP Code:

#define charsmax(%1) sizeof(%1)-1 


[ --<-@ ] Black Rose 02-08-2008 11:35

Re: Gstrafe & Bhop Script Detector (GBSD)
 
Add a check for version.

Did you test this?
Code:

[GBSD]  was ed for using a  Script. (Loop:
That's nice.


All times are GMT -4. The time now is 18:30.

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