[Include] Anti Cheat Pack (Full Release)
#1

Anti Cheat Full Pack


Release Information

I thought instead of making lots and lots of versions of this category as i said in the first release so i decided to make a full pack i have been working on since yesterday when i released the anti weapons hack

Change Log:

Code:
Anti Cheat Full Pack V1.0 Released

Protects Your Server Against:

Health Hacks
Money Hacks
Armour Hacks
Vehicle Heath Hacks
Weapons Hacks
JetPack Hacks

More Coming soon.. such as Nitro, Air Break etc...

How To Use


Under public OnPlayerUpdate(playerid)
pawn Code:
public OnPlayerUpdate(playerid)
{
HealthHack(playerid);
MoneyHack(playerid);
ArmourHack(playerid);
VHH(playerid);
AntiCheat(playerid);
IlegalWeapons(playerid);
JetPack(playerid);
return 1;
}

Editable Things in the Include


There are some things that are editable in this include

Main Thing:
pawn Code:
new Action_Taken =0; //you have to change this in order for Anti Cheat to Work
// 1 = Ban
// 2 = Kick
The Previous Function Works due to the order u give to it then it works as if you gave it an order to ban a player so it bans the player directly and silently in case he used hacks else if you gave it an order to kick a player so it kicks the player directly and silently in case he used hacks this is configurable through out the numbers given if its set to 0 it makes nothing this means you have disabled the Anti Cheat else if its set to 1 it bans the player instantly when he tries to use hacks and setting it to 2 means kicks the player when he tries to use hacks

Other Things:

Money Hack:
pawn Code:
if(GetPlayerMoney(playerid) >= 5000000)
Change it as you want this is the amount that if the player exceeded he gets banned its currently on '5 million'

Weapons Hack:

How To edit?
There is 2 kinds of edit to this..
1. Removing a weapon from the ilegal weapons list
2. Adding a Weapon to the ilegal weapons list

Lets talk about the first one

Removing is simple done by :
pawn Code:
if(GetPlayerWeapon(playerid) == 16 || GetPlayerWeapon(playerid) == 17 || GetPlayerWeapon(playerid) == 35
I want to remove id 35[RPG] what shall i do?
pawn Code:
if(GetPlayerWeapon(playerid) == 16 || GetPlayerWeapon(playerid) == 17
Never for get to remove the " || "
because it means this or that so if u leave it the include will assume as this or or [cuz || || ] so it may bug at this spot

2nd thing:
Adding a weapon to the list
pawn Code:
if(GetPlayerWeapon(playerid) == 16 || GetPlayerWeapon(playerid) == 17 || GetPlayerWeapon(playerid) == 35 ||
GetPlayerWeapon(playerid) == 36 || GetPlayerWeapon(playerid) == 37 || GetPlayerWeapon(playerid) == 38 ||
GetPlayerWeapon(playerid) == 39 || GetPlayerWeapon(playerid) == 40 || GetPlayerWeapon(playerid) == 18)
for example i want to add weapon id 26 [swan off shot gun]
What shall i do?

First i add || after the last weapon id in the list

then i add this code
pawn Code:
GetPlayerWeapon(playerid) == 26
so it looks like

pawn Code:
|| GetPlayerWeapon(playerid) == 26 //|| other weapon here same system
*LOL Copied from the previous post* i am not bothered to re write it again

Bugs
Non at the moment if you find any feel free to post

Download
MediaFire.com
Pastebin.com
Reply
#2

Not bad.....
Reply
#3

Quote:
Originally Posted by SDraw
View Post
Not bad.....
Thanks alot
Reply
#4

good job ^^
Reply
#5

Not bad.
Good work.
Reply
#6

Thanks guys
Reply
#7

Just a suggestion if you'd like to improve this include, look up the anti cheat tips topic by cessil in the scripting discussion section.
Reply
#8

You should use hooks to make it better.
Reply
#9

i ll make clickable text draws next verison to enable / disable the anti cheat and some more options
Reply
#10

Nice! Excellent job making this!
Reply
#11

Quote:
Originally Posted by [xB]Lordz
Посмотреть сообщение
Not bad.
Good work.
Quote:
Originally Posted by X_Boy
Посмотреть сообщение
good job ^^
Quote:
Originally Posted by NoahF
Посмотреть сообщение
Nice! Excellent job making this!
Thanks
Reply
#12

pawn Код:
stock MoneyHack(playerid)
{
        if(GetPlayerMoney(playerid) >= 5000000) //change it as you want this is the amount that if the player exceeded he gets banned its currently on '5 million'
        {
        Reason =3;
        return 1;
        }
        return 0;
}
If an admin gives somebody $5m, everybody will get banned...

pawn Код:
stock AntiCheat(playerid)
{
if(Action_Taken == 1 && Reason >= 1)
{
Ban(playerid);
return 1;
}
if(Action_Taken == 2 && Reason >= 1)
{
Kick(playerid);
return 1;
}
 return 0;
}
TIP: Replace new Reason; with new Reason[MAX_PLAYERS];

But it's a cool script, nice job.
Reply
#13

Quote:
Originally Posted by Emmet_
Посмотреть сообщение
pawn Код:
stock MoneyHack(playerid)
{
        if(GetPlayerMoney(playerid) >= 5000000) //change it as you want this is the amount that if the player exceeded he gets banned its currently on '5 million'
        {
        Reason =3;
        return 1;
        }
        return 0;
}
If an admin gives somebody $5m, everybody will get banned...

pawn Код:
stock AntiCheat(playerid)
{
if(Action_Taken == 1 && Reason >= 1)
{
Ban(playerid);
return 1;
}
if(Action_Taken == 2 && Reason >= 1)
{
Kick(playerid);
return 1;
}
 return 0;
}
How? its (playerid) and not its not looped to MAX_PLAYERS or something

EDIT: any ways i am working on a Filterscript that u can disable / enable the anti cheat options through it u may disable Money hack as well as long as u think it will ban every one
Reply
#14

Quote:
Originally Posted by CROSS_Hunter
Посмотреть сообщение
How? its (playerid) and not its not looped to MAX_PLAYERS or something

EDIT: any ways i am working on a Filterscript that u can disable / enable the anti cheat options through it u may disable Money hack as well as long as u think it will ban every one
No, I mean that you set the Reason variable to 1-5 in the functions (not just the money hack), then when the Anticheat function is called, it will check if the Reason variable is over or equal to 1, then it will ban/kick the playerid variable.

I'll have to look at the code again. Sorry for the misunderstanding lol, anyways nice job .
Reply
#15

Quote:
Originally Posted by Emmet_
Посмотреть сообщение
No, I mean that you set the Reason variable to 1-5 in the functions, then when the Anticheat function is called, it will check if the Reason variable is over or equal to 1, then it will ban/kick.

I'll have to look at the code again. Sorry for the misunderstanding lol
umm ok np lol cuz i tested it 100s of times before releasing and.. ready the EDIT of the last post may be good
Reply
#16

svcheats is much better but i appriciate for your script.
Good job
Reply
#17

Quote:
Originally Posted by Cassy_
Посмотреть сообщение
svcheats is much better but i appriciate for your script.
Good job
umm :/ ok np thnx
Reply
#18



This si not anti-cheat its bullshit and i will explain why


pawn Код:
stock HealthHack(playerid)
{
       
        if(GetPlayerHealth(playerid,health) > 100)
        {
    Reason =1;
        return 1;
        }
        return 0;
}
Were you see player to get more then 100hp ? and second what if player(cheater) its set hes hp to 100 ? how it will detect it ? and we dont talk about other type of health cheats that aways stay on same hp and if the cheat tool allow use to input hes hp ? no detection NOT WORKING

For Armor hack its same no detection NOT WORKING


pawn Код:
stock MoneyHack(playerid)
{
        if(GetPlayerMoney(playerid) >= 5000000) //change it as you want this is the amount that if the player exceeded he gets banned its currently on '5 million'
        {
        Reason =3;
        return 1;
        }
        return 0;
}
pawn Код:
stock VHH(playerid)
{
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
    vehicle = GetPlayerVehicleID(playerid);
    if(GetVehicleHealth(vehicle, vehhealth) > 1000)
    {
        Reason =4;
        return 1;
                }
        }
        return 0;
}
Almost same like health hack what if he set hes vehicle health to 1000hp wich is normal vehicle hp ? how you will detect if player is godmode hack ? you cant its look like everything come from first stock
Same like first what if cheater dont give 5 mil ,let say 1mil or 100k ? how your script will detect it - becose it can +1 how you will prevent if someone give 5mil to his fr ? you cant NOT WORKING


Weapon hack

pawn Код:
stock IlegalWeapons(playerid)
{
 
if(GetPlayerWeapon(playerid) == 16 || GetPlayerWeapon(playerid) == 17 || GetPlayerWeapon(playerid) == 35 ||
        GetPlayerWeapon(playerid) == 36 || GetPlayerWeapon(playerid) == 37 || GetPlayerWeapon(playerid) == 38 ||
        GetPlayerWeapon(playerid) == 39 || GetPlayerWeapon(playerid) == 40 || GetPlayerWeapon(playerid) == 18)
        {
        Reason =5;
 
            return 1;
        }
        return 1;
        }
I havent see that server can have max 9 weapons why you dont check if player have any weapons insted of this ? NOT WORKING


One more thing everyone say its they becose they are
1.Havent check it and only dump for post count
2.Dont know anything about pawn and scripting


Im sorry for the act that im saying you have done but not everyone understand how pawn work and have to be scripter and thats why someone may wonna wont to protect his server from cheaters and this will not stop them.

I hope you dont take this as act of insult or something similer im just poithing were is the problem ! and i hope you learn from your mistakes
Reply
#19

Quote:
Originally Posted by doreto
Посмотреть сообщение


This si not anti-cheat its bullshit and i will explain why


pawn Код:
stock HealthHack(playerid)
{
       
        if(GetPlayerHealth(playerid,health) > 100)
        {
    Reason =1;
        return 1;
        }
        return 0;
}
Were you see player to get more then 100hp ? and second what if player(cheater) its set hes hp to 100 ? how it will detect it ? and we dont talk about other type of health cheats that aways stay on same hp and if the cheat tool allow use to input hes hp ? no detection NOT WORKING

For Armor hack its same no detection NOT WORKING


pawn Код:
stock MoneyHack(playerid)
{
        if(GetPlayerMoney(playerid) >= 5000000) //change it as you want this is the amount that if the player exceeded he gets banned its currently on '5 million'
        {
        Reason =3;
        return 1;
        }
        return 0;
}
pawn Код:
stock VHH(playerid)
{
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
    vehicle = GetPlayerVehicleID(playerid);
    if(GetVehicleHealth(vehicle, vehhealth) > 1000)
    {
        Reason =4;
        return 1;
                }
        }
        return 0;
}
Almost same like health hack what if he set hes vehicle health to 1000hp wich is normal vehicle hp ? how you will detect if player is godmode hack ? you cant its look like everything come from first stock
Same like first what if cheater dont give 5 mil ,let say 1mil or 100k ? how your script will detect it - becose it can +1 how you will prevent if someone give 5mil to his fr ? you cant NOT WORKING


Weapon hack

pawn Код:
stock IlegalWeapons(playerid)
{
 
if(GetPlayerWeapon(playerid) == 16 || GetPlayerWeapon(playerid) == 17 || GetPlayerWeapon(playerid) == 35 ||
        GetPlayerWeapon(playerid) == 36 || GetPlayerWeapon(playerid) == 37 || GetPlayerWeapon(playerid) == 38 ||
        GetPlayerWeapon(playerid) == 39 || GetPlayerWeapon(playerid) == 40 || GetPlayerWeapon(playerid) == 18)
        {
        Reason =5;
 
            return 1;
        }
        return 1;
        }
I havent see that server can have max 9 weapons why you dont check if player have any weapons insted of this ? NOT WORKING


One more thing everyone say its they becose they are
1.Havent check it and only dump for post count
2.Dont know anything about pawn and scripting


Im sorry for the act that im saying you have done but not everyone understand how pawn work and have to be scripter and thats why someone may wonna wont to protect his server from cheaters and this will not stop them.

I hope you dont take this as act of insult or something similer im just poithing were is the problem ! and i hope you learn from your mistakes
You really have to open ur eyes next time
pawn Код:
public OnPlayerUpdate(playerid)
{
HealthHack(playerid);
MoneyHack(playerid);
ArmourHack(playerid);
VHH(playerid);
AntiCheat(playerid);
IlegalWeapons(playerid);
JetPack(playerid);
return 1;
}
Stocks ----> OnPlayerUpdate

Got it ? if u dont understand... then its ur problem not mine

EDIT: every one who tested it didnt say it didnt work as u said
Reply
#20

Full of trash....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)