SA-MP Forums Archive
[FilterScript] [FS] Simple & Accurate Anti-C-bug script - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS] Simple & Accurate Anti-C-bug script (/showthread.php?tid=145416)



[FS] Simple & Accurate Anti-C-bug script - Whitetiger - 02.05.2010

well, i was working on this for like, 30 minutes but from what i can see, it is waaaaay more accurate than the anti c bug's in sa-mp forums ...

What is C-Bug
C-bug or, crouch bug, is a "bug" in san andreas allowing you to shoot walking weapons a bit faster, here is a video of c bug
cbug

What does this script do?
this script will kick anyone who uses the crouch bug.

What makes this anti-c-bug better than sneaky's version?
well, this one is way more accurate.

So how accurate is the script?
it is about 99% accurate, its not perfect, but i have never had it detect a false positive.

Can we see a video of the script in action?
antic

Credits
Sneaky's anti c bug script, http://forum.sa-mp.com/index.php?topic=110613.0

Download
http://pastebin.com/h573VFp6


v1.0 (02/05/2010)
- First release

v1.1 (07/04/2011)
- Fixed the "hold shift and space key and you can use cbug" problem.
- Fixed a couple false detections if you where already crouched
- PVars to regular variables to avoid conflict.
- couple "speed" improvements.

v1.2 (14/05/2011)
- Fixed a work around if a very very specific button combination was used

v1.3 (22/09/2011)
- Fixed a false positive.


Re: [FS] Simple & Accurate Anti-C-bug script - leapfish - 02.05.2010

Thank you man, gonna try this


Re: [FS] Simple & Accurate Anti-C-bug script - Lorenc_ - 02.05.2010

lol after u cbug you get droped btw good job


Re: [FS] Simple & Accurate Anti-C-bug script - help! - 28.05.2010

Very accurate, works like the charm. Although I've found a way to exploit this. If you hold shift or alt while crackshooting, it lets you pass :/


Re: [FS] Simple & Accurate Anti-C-bug script - Riaz - 28.05.2010

Thanks, thanks a lot man


Re: [FS] Simple & Accurate Anti-C-bug script - denis1999 - 28.05.2010

very Nice
this is lol
Code:
if(strfind(name, "[___]", true) != -1) return 0;



Re: [FS] Simple & Accurate Anti-C-bug script - Ya$N - 28.05.2010

Good job


Re: [FS] Simple & Accurate Anti-C-bug script - BuLLeT[LTU] - 29.05.2010

Try hold pressed shift or space key and you can use cbug.


Re: [FS] Simple & Accurate Anti-C-bug script - Whitetiger - 07.04.2011

Quote:
Originally Posted by BuLLeT[LTU]
View Post
Try hold pressed shift or space key and you can use cbug.
hey man,

thanks for the report first of all, i know its been awhile, when i saw your comment i put it on my to-do list and i guess i just forgot about it, anyway, numerous changes have been implemented

- Fixed the "hold shift and space key and you can use cbug" problem.
- Fixed a couple false detections if you where already crouched
- PVars to regular variables to avoid conflict.
- couple "speed" improvements.

download on the first post.


Re: [FS] Simple & Accurate Anti-C-bug script - [ProX]BlueFire - 07.04.2011

awasome
it would be cool if u shoot with minigun or rocket louncher(RPG) when u have this script


Re: [FS] Simple & Accurate Anti-C-bug script - Whitetiger - 14.05.2011

- Fixed a work around if a very very specific button combination was used

link in first post.


Re: [FS] Simple & Accurate Anti-C-bug script - dr.pepper - 15.05.2011

Oh, This is very useful. Would be great for my Anti-Cheat System, thanks!


Re: [FS] Simple & Accurate Anti-C-bug script - azzerking - 08.06.2014

This wouldn't work if a player is using a cleo mods though right?

I'm guessing if we made our own modification we could make it easier to detect auto c-bug, because they would be shooting faster then the normal rate and yet they haven't been kicked, am I right?


Re: [FS] Simple & Accurate Anti-C-bug script - [WSF]ThA_Devil - 08.06.2014

Quote:
Originally Posted by azzerking
View Post
This wouldn't work if a player is using a cleo mods though right?

I'm guessing if we made our own modification we could make it easier to detect auto c-bug, because they would be shooting faster then the normal rate and yet they haven't been kicked, am I right?
The thing is, if server got lagcomp enabled there is no way of detecting rapid fire cheats, unless firereate ofc.
because shooting is done on client side. But if lagcomp is disabled, then client sends key states to server, which means, auto c bug would need to send key states too, so - detectable.


Re: [FS] Simple & Accurate Anti-C-bug script - hossa - 08.06.2014

Still being used till now because it's epic.


Re: [FS] Simple & Accurate Anti-C-bug script - Rocky1993 - 09.06.2014

Nice Job !


Re: [FS] Simple & Accurate Anti-C-bug script - gARRRy - 09.06.2014

Nice but you must also create a version in which server don't kick player but warns and also take all weapons from that player uses c-bug


Re: [FS] Simple & Accurate Anti-C-bug script - iRaiDeN - 09.06.2014

Not bad!


Re: [FS] Simple & Accurate Anti-C-bug script - leon44 - 18.08.2018

Someone can tell me how to enable/unable this anticbug system with a /cmd? for example, /anticbug <- to turn on/off the anticbug system.