SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 08/04/2018, 01:10 AM   #1
RogueDrifter
High-roller
 
RogueDrifter's Avatar
 
Join Date: Dec 2017
Location: SA-MP Drifting world.
Posts: 1,565
Reputation: 338
Default Anti cheat pack (13 anticheats & 3 systems that are fully functional).

Anti_cheat_pack(2018 June 27th).



This is a pack of 13 anticheats and 3 helping systems which you can control through callbacks mentioned
in the includes and the test.pwn file.

Installation: You simply include the files in your gamemode/fs depending
on the include's setup (some require include in all scripts and only edit through
the gamemode, others can be used in one script alone).

Testing: All can be done through the test.pwn folder which already
contains all of the includes and their callbacks nottify you through client and printed messages

Version: 7.0

Installation

Simply install to your project:

Code:
sampctl package install RogueDrifter/Anti_cheat_pack
GitHub: https://github.com/RogueDrifter/Anti_cheat_pack


Include in your code and begin using the library:

PHP Code:
#include <Anti_cheat_pack> 
Functions provided

Code:
1- Anti airbreak on foot
2- Anti airbreak in car
3- Anti teleport on foot
4- Anti teleport in car
5- Anti fake kill
6- Anti fake kill spam
7- Anti fake clients connecting (hacked ones).
8- Anti jetpack cheats
9- Anti slidebug abuse.
10- Anti chat spammers
11- Anti car spammers
12- Anti car troll cheats
13- Anti teleport in vehicle
14- Anti teleport between vehicles
15- Anti speed cheats on foot
16- Anti speed cheats in car
17- Anti gun cheats
18- Anti ammo cheats (add)
19- Anti ammo cheats (freeze)
20- Anti rapid fire cheats
21- Anti money cheats
22- Anti cj run
23- Anti NPC spoofing
24- Anti AFK ghost
25- Anti fake spawn
26- Anti fake connect (name changer)
27- Anti car swing (speeders)
28- Anti particle spam (damagers)
29- Anti illegal car mods
30- Anti remote jacking
31- Anti dialog spoofing
32- Anti dialog crashing
33- Anti teleport to pickups/checkpoints
34- Anti changing seats rapidly
35- Detection for lag spike/full desync.
Usage

The pack includes:
Code:
A- Includes can be used on one script:
1-AFkill //Anti fake kill -Rogue
2-AntiFC //Anti fake clients - Rogue
3-rAsc //Anti speed cheats- Rogue
4-rVM //Anti illegal car mods -Emmet_
5-rAcs //Anti car spam - Rogue
6-rED //Anti dialog spoof/crash- Emmet_ (easyDialog)

B- Includes that need to be included everywhere and only edit through the GM:
1-AntiJC //Anti jetpack cheats- Rogue
2-Opba //Anti airbreak\teleport - Rogue
3-rAct //Anti car trolls - Rogue
4-rEac //Anti carswing\particlespam - Lorenc_
5-rAmc //Anti money cheats- Rogue
6-rAgc //Anti gun cheats -Rogue
7-rAntiBuggers //Anti bug triggerers -Rogue

C- Includes are not basically anti-cheats but systems that help defend your server:
1-AntiSpam //Anti chat spam- Rogue
2-AntiSba //Anti slide bug abuse- Rogue
3-Flaggers //Lag spike\desnyc detector- Rogue
Use the callbacks provided to you by the includes ONLY IN THE GAMEMODE! But include the Anti_cheat_pack in all scripts!

The includes are 2 types as mentioned before, some edit only through gamemode and include everywhere.
Others done through a single script whether its the GM/FS, but in this pack as a whole you can only use callbacks through the GM, but you still need to include it in all scripts.

Quick examples:
PHP Code:
new Test_String[80];

public 
OnPlayerFakeKill(playeridspoofedidspoofedreasonfaketype)
{
    
format(Test_Stringsizeof(Test_String), "ID %d just spoof killed ID %d reason %d type %d"playeridspoofedidspoofedreasonfaketype);
    
SendClientMessageToAll(-1Test_String);
    print(
Test_String);
    return 
1;
}

public 
OnPlayerFakeConnect(playerid)
{
    
format(Test_Stringsizeof(Test_String), "ID %d is fake connecting!"playerid);
    
SendClientMessageToAll(-1Test_String);
    print(
Test_String);
    return 
1;
}

public 
OnPlayerJetpackCheat(playerid)
{
    
format(Test_Stringsizeof(Test_String), "ID %d is using jetpack cheats!"playerid);
    
SendClientMessageToAll(-1Test_String);
    print(
Test_String);
    return 
1;
}

public 
OnPlayerSpamChat(playerid)
{
    
format(Test_Stringsizeof(Test_String), "ID %d is spamming chat!"playerid);
    
SendClientMessageToAll(-1Test_String);
    print(
Test_String);
    return 
1;
}

public 
OnPlayerGunCheat(playeridweaponidammohacktype)
{
    
format(Test_Stringsizeof(Test_String), "ID %d just used weapon cheats weapon %d ammo %d type %d!"playeridweaponidammohacktype);
    
SendClientMessageToAll(-1Test_String);
    print(
Test_String);
    return 
1;
}

public 
OnPlayerSpeedCheat(playeridspeedtype)
{
    
format(Test_Stringsizeof(Test_String), "ID %d just speed cheats type !"playeridspeedtype);
    
SendClientMessageToAll(-1Test_String);
    print(
Test_String);
    return 
1;
}

public 
OnPlayerBreakAir(playeridbreaktype)
{
    
format(Test_Stringsizeof(Test_String), "ID %d used airbreak/teleport cheats type %d !"playeridbreaktype);
    
SendClientMessageToAll(-1Test_String);
    print(
Test_String);
    return 
1;
}

public 
OnPlayerSpamCars(playeridnumber)
{
    
format(Test_Stringsizeof(Test_String), "ID %d used car spammed %d vehicles !"playeridnumber);
    
SendClientMessageToAll(-1Test_String);
    print(
Test_String);
    return 
1;
}

public 
OnPlayerCarTroll(playeridvehicleidtrolledidtrolltype)
{
    if(
trolledid == INVALID_PLAYER_ID)
        
format(Test_Stringsizeof(Test_String), "ID %d used car troll cheats vehicle %d type %d !"playeridvehicleidtrolltype);
    else
        
format(Test_Stringsizeof(Test_String), "ID %d used car troll cheats on ID %d vehicle %d type %d !"playeridtrolledid vehicleidtrolltype); 
    
SendClientMessageToAll(-1Test_String);
    print(
Test_String);
    return 
1;
}

public 
OnPlayerCashCheat(playeridoldcashnewcashamount)
{
    
format(Test_Stringsizeof(Test_String), "ID %d used money cheats for %d !"playeridamount);
    
SendClientMessageToAll(-1Test_String);
    print(
Test_String);
    return 
1;
}

public 
OnPlayerCarSwing(playeridvehicleid)
{
    
format(Test_Stringsizeof(Test_String), "ID %d used car swing cheats vehicle %d !"playeridvehicleid);
    
SendClientMessageToAll(-1Test_String);
    print(
Test_String);
    return 
1;
}

public 
OnPlayerParticleSpam(playeridvehicleid)
{
    
format(Test_Stringsizeof(Test_String), "ID %d used car particle spam cheats vehicle %d !"playeridvehicleid);
    
SendClientMessageToAll(-1Test_String);
    print(
Test_String);
    return 
1;
}

public 
OnVehicleModEx(playeridvehicleidcomponentidillegal)
{
    if(
illegal)
    {
        
format(Test_Stringsizeof(Test_String), "ID %d used car mod cheats component %d vehicle %d !"playeridcomponentidvehicleid);
        
SendClientMessageToAll(-1Test_String);
        print(
Test_String);
    }
    return 
1;
}

public 
OnPlayerSlide(playeridweaponidFloat:speed)
{
    
format(Test_Stringsizeof(Test_String), "ID %d is slide bugging weapon %d !"playeridweaponid);
    
SendClientMessageToAll(-1Test_String);
    print(
Test_String);
    return 
1;
}

public 
OnPlayerLagout(playeridlagtypeping)
{
    
format(Test_Stringsizeof(Test_String), "ID %d is lagging type %d ping %d !"playeridlagtypeping);
    
SendClientMessageToAll(-1Test_String);
    print(
Test_String);
    return 
1;
}

public 
OnPlayerBugAttempt(playeridbugcode)
{
    
format(Test_Stringsizeof(Test_String), "ID %d is using bug cheats type %d!"playeridbugcode);
    
SendClientMessageToAll(-1Test_String);
    print(
Test_String);
    return 
1;
}

/* Easy dialog by Emmet_ Example: */

CMD:weapons(playeridparams[])
{
    
Dialog_Show(playeridWeaponMenuDIALOG_STYLE_LIST"Weapon Menu""9mm\nSilenced 9mm\nDesert Eagle\nShotgun\nSawn-off Shotgun\nCombat Shotgun""Select""Cancel");
    return 
1;
}

Dialog:WeaponMenu(playeridresponselistiteminputtext[])
{
    if (
response)
    {
        new 
str[64];
        
format(str64"You have selected the '%s'."inputtext);

        
GivePlayerWeapon(playeridlistitem 22500);
        
SendClientMessage(playerid, -1str);
    }
    return 
1;
}

public 
OnDialogPerformed(playeriddialog[], responsesuccess)
{
    if (!
strcmp(dialog"WeaponMenu") && IsPlayerInAnyVehicle(playerid))
    {
        
SendClientMessage(playerid, -1"You must be on-foot to spawn a weapon.");
        return 
0;
    }
    return 
1;
}
/* Easy dialog by Emmet_ Example ^ */ 
Change log
Code:
1- Made on 2018 April 25th: Minor fixes and made the includes callbacks usable only through the GM.
2- Made on 2018 May 16th: Again some fixes which are actually important including the anti airbreak and anti car troll includes and some more so just update everything! details down in the post.
3- Made on 2018 June 27th: Yet once again just a few fixes to some includes so just redownload the whole package and recompile, you can monitor the change history on GitHub if anything.

Testing

To test, simply run the package:

Code:
sampctl package run
Updating

To update, simply run the package:

Code:
sampctl package ensure
Non sampctl users

What are you doing? go download sampctl! it's a great tool to maintain and update the code way easier than the normal one.
Related links:
http://forum.sa-mp.com/showthread.php?t=651240
http://forum.sa-mp.com/showthread.php?t=651159
http://forum.sa-mp.com/showthread.php?t=651548

But for now, if you wanna use this simply do the following steps:

1- Download the repository from the github link.

2- Take all of the .inc files and put them in your pawno/include.

3- Open all of your filterscripts and use #include <Anti_cheat_pack> right after #include a_samp.

4- Open your gamemode and type the same line as above^.

5- Keep your gamemode open and use the callbacks mentioned in the post as examples to your own desire.

And that's about it! every time i announce a new version release just re-do those steps above!


Special thanks to Southclaws for the major help he provided me get this up and start using sampctl (which is amazing) and to everyone else who helped me on discord! (and to kvann for nothing ) #freekvann (don't please).

Another special thanks to seanny over github for helping me patch a few slips i forgot to edit.

Some of the anti cheat detection methods on the new include (anti buggers) were inspired by the anti cheat patches (by southclaws and pottus) and the nex-ac anti cheat system (by OstGot) so thanks to both of them!

Feel free to submit any issues you have Here.

If you followed all the above correctly you won't need this but just as a note, this:
Code:
1- rAgc (anti guns cheats) comes before FLaggers (Lag/desync checker)
2- Opba (anti airbreak) comes before rAct (anti car troll)
Is the right order for the includes, all else can be included randomly.
In a hope of having a game free of cheaters.
__________________
Code:
I'm available to script stuff for cash PM me here or on discord @ Andy[RDZ]#0040
[Tutorial]:Anti-cheat guide ||Mini-game 101||VC/LC maps install||
Array index out of bounds


[Github]:Link [Pastebin]:Link [Forum]:Link [Server]:Link [Discord]:Link



Last edited by RogueDrifter; 24/07/2018 at 04:36 PM.
RogueDrifter is offline   Reply With Quote
Old 08/04/2018, 02:23 AM   #2
Mokless
Big Clucker
 
Mokless's Avatar
 
Join Date: Oct 2014
Posts: 120
Reputation: 32
Default Re: Anti cheat pack

This is great, thanks for this mate.

PS: Hope you could add something against car warping cheats.
Mokless is offline   Reply With Quote
Old 08/04/2018, 02:37 AM   #3
RogueDrifter
High-roller
 
RogueDrifter's Avatar
 
Join Date: Dec 2017
Location: SA-MP Drifting world.
Posts: 1,565
Reputation: 338
Default Re: Anti cheat pack

Quote:
Originally Posted by Mokless View Post
This is great, thanks for this mate.

PS: Hope you could add something against car warping cheats.
You're very welcome,

That was already made here: http://forum.sa-mp.com/showthread.php?t=648109
and here: http://forum.sa-mp.com/showthread.php?t=648957

Soon all of my releases will be migrated to sampctl as well.
__________________
Code:
I'm available to script stuff for cash PM me here or on discord @ Andy[RDZ]#0040
[Tutorial]:Anti-cheat guide ||Mini-game 101||VC/LC maps install||
Array index out of bounds


[Github]:Link [Pastebin]:Link [Forum]:Link [Server]:Link [Discord]:Link


RogueDrifter is offline   Reply With Quote
Old 08/04/2018, 03:24 AM   #4
StrikerZ
High-roller
 
StrikerZ's Avatar
 
Join Date: Mar 2016
Location: India
Posts: 1,123
Reputation: 154
Default Re: Anti cheat pack

Noice I was waiting for it.
__________________
StrikerZ is offline   Reply With Quote
Old 08/04/2018, 03:26 AM   #5
RogueDrifter
High-roller
 
RogueDrifter's Avatar
 
Join Date: Dec 2017
Location: SA-MP Drifting world.
Posts: 1,565
Reputation: 338
Default Re: Anti cheat pack

Quote:
Originally Posted by StrikerZ View Post
Noice I was waiting for it.
Thanks, and thanks for the help over discord too :)
__________________
Code:
I'm available to script stuff for cash PM me here or on discord @ Andy[RDZ]#0040
[Tutorial]:Anti-cheat guide ||Mini-game 101||VC/LC maps install||
Array index out of bounds


[Github]:Link [Pastebin]:Link [Forum]:Link [Server]:Link [Discord]:Link


RogueDrifter is offline   Reply With Quote
Old 08/04/2018, 05:14 AM   #6
X337
Gangsta
 
Join Date: Sep 2014
Location: Indonesia
Posts: 880
Reputation: 287
Default Re: Anti cheat pack

better than nex-ac
Edit: jk, no it doesn't
__________________
viva la sa-mp
X337 is offline   Reply With Quote
Old 08/04/2018, 09:58 AM   #7
RogueDrifter
High-roller
 
RogueDrifter's Avatar
 
Join Date: Dec 2017
Location: SA-MP Drifting world.
Posts: 1,565
Reputation: 338
Default Re: Anti cheat pack

Updated: V2.0
Contains 6+ anti cheats that were made by me earlier just to make it easier to contain them all, now i don't have to bump 12 threads to notify.

I still plan on creating a full anti cheat system containing all of these but that doesn't mean that they don't work separately.
__________________
Code:
I'm available to script stuff for cash PM me here or on discord @ Andy[RDZ]#0040
[Tutorial]:Anti-cheat guide ||Mini-game 101||VC/LC maps install||
Array index out of bounds


[Github]:Link [Pastebin]:Link [Forum]:Link [Server]:Link [Discord]:Link


RogueDrifter is offline   Reply With Quote
Old 08/04/2018, 11:28 AM   #8
Eatmysmoke
Little Clucker
 
Eatmysmoke's Avatar
 
Join Date: Jun 2014
Posts: 9
Reputation: 13
Default Re: Anti cheat pack

Thanks for continuing to support the Anti-Cheat community greatly appreciated!
__________________
Eatmysmoke is offline   Reply With Quote
Old 08/04/2018, 11:40 AM   #9
nnahtann
Little Clucker
 
nnahtann's Avatar
 
Join Date: Sep 2017
Location: ml-rp.com
Posts: 43
Reputation: 20
Default Re: Anti cheat pack

Definitely gonna use this.
Thank you for releasing!!!!
__________________
nnahtann is offline   Reply With Quote
Old 08/04/2018, 11:52 AM   #10
RogueDrifter
High-roller
 
RogueDrifter's Avatar
 
Join Date: Dec 2017
Location: SA-MP Drifting world.
Posts: 1,565
Reputation: 338
Default Re: Anti cheat pack

You're welcome, a rate & comment is always appreciated to help me improve my work regarding how you guys think about it :)
__________________
Code:
I'm available to script stuff for cash PM me here or on discord @ Andy[RDZ]#0040
[Tutorial]:Anti-cheat guide ||Mini-game 101||VC/LC maps install||
Array index out of bounds


[Github]:Link [Pastebin]:Link [Forum]:Link [Server]:Link [Discord]:Link


RogueDrifter 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] Anti-Cheat ANTIFLY\ANTI GOD\ANTI SKIN BUG\ANTI MONEY HACK\ANTI JETPACK HACK\ANTI GODOFCARS\ANTI FAKEKILL RedMF Lanšamentos/Releases 19 20/07/2018 01:32 AM
Request anti cheat, anti flyhack | anti ammo hack | anti healt hack | anti aimboter Izaki Scripting Help 1 15/06/2015 04:21 PM
[Include] Anti Cheat Pack (Full Release) CROSS_Hunter Includes 22 07/09/2012 10:18 PM


All times are GMT. The time now is 11:09 AM.


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