SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 02/01/2015, 12:23 PM   #1
HY
Gangsta
 
HY's Avatar
 
Join Date: Sep 2014
Location: Romānia.
Posts: 540
Reputation: 87
Default Anti C-Bug System. [Simple and accurate]

Introduction:




- Hello.
Here I have an very Simple and Accurate system Anti C-Bug.
This system it's checks if a player press C and Left Mouse Button and if them are having a C-Bug Gun.
If him press on that buttons and it's having C-Bug gun, then it's calling a function.


pawn Code:
public OnPlayerMakeCBug(playerid)
{
    return 1;
}

Example script:


pawn Code:
public OnPlayerMakeCBug(playerid)
{
    new name[15], string[60];
    GetPlayerName(playerid, name, 15);
    format(string, sizeof(string), "[SERVER]: %s [%d] please stop C-Bug.", name, playerid);
    SendClientMessage(playerid, -1, string);
    return 1;
}

Download:


- Pastebin; [Source Code]

- Solidfiles; [Source Code + AMX file]

Installation:


pawn Code:
- If you downloaded from Pastebin:

1. Copy all Pastebin code.
2. Put Pastebin code in a .PWN file.
3. Compile file.
4. Put .AMX / .PWN File in "filterscripts" folder.
5. Go in server.cfg and at "filescripts" line put you file name.
6. DONE!

- If you downloaded from Solidfiles:

1. Download pack.
2. Copy AntiCBug.pwn and AntiCBug.amx in you filterscripts folder.
3. Go in server.cfg and at "filescripts" line put: "AntiCBug" without quotes [" "].
4. DONE!
__________________
hi.
HY is offline   Reply With Quote
Old 02/01/2015, 12:25 PM   #2
Glossy42O
High-roller
 
Join Date: Oct 2014
Location: in my house
Posts: 1,733
Reputation: 231
Default Re: Anti C-Bug System. [Simple and accurate]

Nice job.

EDIT: Won't work for me because i cbug so fast it won't regocnize xD
Glossy42O is offline   Reply With Quote
Old 02/01/2015, 12:32 PM   #3
HY
Gangsta
 
HY's Avatar
 
Join Date: Sep 2014
Location: Romānia.
Posts: 540
Reputation: 87
Default Re: Anti C-Bug System. [Simple and accurate]

Quote:
Originally Posted by Stuun23 View Post
Nice job.

EDIT: Won't work for me because i cbug so fast it won't regocnize xD
Thanks.
If you have a C-Bug weapon, and press C and LMB, then of course will regocnize.
__________________
hi.
HY is offline   Reply With Quote
Old 02/01/2015, 12:51 PM   #4
ToySoldier
Big Clucker
 
Join Date: Feb 2013
Posts: 128
Reputation: 13
Default Re: Anti C-Bug System. [Simple and accurate]

I don't know much about pawn , be i think most people c-bug using control
ToySoldier is offline   Reply With Quote
Old 02/01/2015, 12:59 PM   #5
HY
Gangsta
 
HY's Avatar
 
Join Date: Sep 2014
Location: Romānia.
Posts: 540
Reputation: 87
Default Re: Anti C-Bug System. [Simple and accurate]

Quote:
Originally Posted by ToySoldier View Post
I don't know much about pawn , be i think most people c-bug using control
Lol. C-Bug with Control. Sorry, I never heard this.
__________________
hi.
HY is offline   Reply With Quote
Old 02/01/2015, 01:02 PM   #6
Glossy42O
High-roller
 
Join Date: Oct 2014
Location: in my house
Posts: 1,733
Reputation: 231
Default Re: Anti C-Bug System. [Simple and accurate]

Nah, doesn't recognize, it's just tooo fast :P
Glossy42O is offline   Reply With Quote
Old 02/01/2015, 01:23 PM   #7
Flori
Huge Clucker
 
Flori's Avatar
 
Join Date: Sep 2014
Location: Germany
Posts: 352
Reputation: 26
Default AW: Anti C-Bug System. [Simple and accurate]

You never tested it or do not even know what "c-bug" is. Am i right?

This can't work!

That function is called when 1. You press c(crouch) + 2. You press fire + 3. You have a c-bug weapon.

Now what? Seems correct, but no, it's not. In a c-bug you never press fire and c at the same time.

How does a c-bug work?

1. You shoot(press fire) + having a c-bug weapon.
Then you stop pressing them.
And then
2. You press c(crouch).


So, please update it, as it won't work.
Flori is offline   Reply With Quote
Old 02/01/2015, 02:27 PM   #8
Schneider
Gangsta
 
Schneider's Avatar
 
Join Date: Jun 2007
Location: Netherlands
Posts: 515
Reputation: 136
Default Re: AW: Anti C-Bug System. [Simple and accurate]

Quote:
Originally Posted by Flori View Post
You never tested it or do not even know what "c-bug" is. Am i right?

This can't work!
That function is called when 1. You press c(crouch) + 2. You press fire + 3. You have a c-bug weapon.
Did you actually read his code?
pawn Code:
if(newkeys & KEY_FIRE && oldkeys & KEY_CROUCH && IsCbugWeapon(playerid))

It clearly says: oldkeys & KEY_CROUCH
Schneider is offline   Reply With Quote
Old 02/01/2015, 02:30 PM   #9
Glossy42O
High-roller
 
Join Date: Oct 2014
Location: in my house
Posts: 1,733
Reputation: 231
Default Re: AW: Anti C-Bug System. [Simple and accurate]

Quote:
Originally Posted by Flori View Post
You never tested it or do not even know what "c-bug" is. Am i right?

This can't work!

That function is called when 1. You press c(crouch) + 2. You press fire + 3. You have a c-bug weapon.

Now what? Seems correct, but no, it's not. In a c-bug you never press fire and c at the same time.

How does a c-bug work?

1. You shoot(press fire) + having a c-bug weapon.
Then you stop pressing them.
And then
2. You press c(crouch).


So, please update it, as it won't work.
Not really.I cbug diffrently.

1. LMB+RMB at the SAME time

2. Press c

3. Press A.

Everything at the SAME TIME.
Glossy42O is offline   Reply With Quote
Old 02/01/2015, 03:56 PM   #10
Flori
Huge Clucker
 
Flori's Avatar
 
Join Date: Sep 2014
Location: Germany
Posts: 352
Reputation: 26
Default AW: Anti C-Bug System. [Simple and accurate]

LOL, ops, in fast reading i overread the oldkey, i read double newkey check, that was the mistake. XD

Stuun, i do it comparable, it's like that bc we make it that fast.

Anyway, you guys really tested that code? Stop crying, it really won't work that perfect anyway. That oldkey crouch and newkey fire will be called crazy when using c-bug in shooting once, multiple shooting and different crouching.

It will be glitchy and can be improved. Test it by yourself...

Also when pressing other keys you can prevent that that functiong is called. Many many glitches can be found here, lol.
Flori is offline   Reply With Quote
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] [FS] Simple & Accurate Anti-C-bug script Whitetiger Filterscripts 18 19/08/2018 12:09 AM
Accurate Anti Weapon Hack [HELP] JaKe Elite Scripting Help 6 31/08/2014 10:43 AM
[FilterScript] Anti Bike Bunny Hop (Accurate) Patrick Filterscripts 19 23/11/2013 07:37 AM
Anti-NOP Hacks (Not accurate) Patrick Scripting Help 9 12/09/2013 05:06 PM
Would this be a accurate anti-cheat? (Basic) rangerxxll Scripting Help 8 30/03/2013 10:50 PM


All times are GMT. The time now is 10:24 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.