[Include] Nex-AC - Anticheat system
#41

http://pastebin.com/6SyuxmqM

Serbian translation.

BTW when you will finish streamer integration with your anticheat?
Reply
#42

Super include, trиs bien!
Reply
#43

Quote:
Originally Posted by DeitY
Посмотреть сообщение
http://pastebin.com/6SyuxmqM

Serbian translation.
Quote:
Originally Posted by wampiros6
Посмотреть сообщение
Thanks!

Quote:
Originally Posted by DeitY
Посмотреть сообщение
BTW when you will finish streamer integration with your anticheat?
Wait.. Today or tomorrow)
Reply
#44

Awesome work man!

Few bugs:
  • 39 Anti-Dialog hack is not working when using y_dialogs.
  • Anti-Airbreak doesn't seems to work, and reports player after classSelection spawn. Fixed it by checking if player spawned in last second.
  • Anti-Weapon hack doesn't work properly. If I give myself a weapon (via GivePlayerWeapon), and change weapon to bare hand, AC thinks I am cheating.
I created enum and wrote script which converted all
Код:
 else AntiCheatInfo[playerid][pFloodCount][13] = AntiCheatInfo[playerid][pFloodCount][27] = 0;
nonsense to readable format.

Added enums:
Код:
enum _:ACListOfReasons {
	/* 0 */ E_AIRBREAK,
	/* 1 */ E_AIRBREAK_IN_VEHICLE,
	/* 2 */ E_TELEPORT,
	/* 3 */ E_TELEPORT_IN_VEHICLE,
	/* 4 */ E_TELEPORT_INTO_VEHICLE,
	/* 5 */ E_TELEPORT_VEHICLE,
	/* 6 */ E_TELEPORT_PICKUPS,
	/* 7 */ E_FLY_HACK,
	/* 8 */ E_FLY_HACK_IN_VEHICLE,
	/* 9 */ E_SPEED_HACK_ONFOOT,
	/* 10 */ E_SPEED_HACK_IN_VEHICLE,
	/* 11 */ E_HEALTH_HACK_IN_VEHICLE,
	/* 12 */ E_HEALTH_HACK_ONFOOT,
	/* 13 */ E_ARMOUR_HACK,
	/* 14 */ E_MONEY_HACK,
	/* 15 */ E_WEAPON_HACK,
	/* 16 */ E_AMMO_HACK_ADD,
	/* 17 */ E_AMMO_HACK_INFINITE,
	/* 18 */ E_SPECIAL_ACTIONS_HACK,
	/* 19 */ E_GODMODE,
	/* 20 */ E_GODMODE_IN_VEHICLE,
	/* 21 */ E_INVISIBILITY_HACK,
	/* 22 */ E_LAGCOMP_SPOOF,
	/* 23 */ E_TUNING_HACK,
	/* 24 */ E_PARKOUT_HACK,
	/* 25 */ E_QUICK_TURN_HACK,
	/* 26 */ E_RAPID_FIRE_HACK,
	/* 27 */ E_FAKESPAWN,
	/* 28 */ E_FAKEKILL,
	/* 29 */ E_PRO_AIM,
	/* 30 */ E_CJ_RUN,
	/* 31 */ E_CARSHOT,
	/* 32 */ E_CARJACK_HACK,
	/* 33 */ E_UNFREEZE_HACK,
	/* 34 */ E_AFK_GHOST,
	/* 35 */ E_FULL_AIMING,
	/* 36 */ E_FAKE_NPC,
	/* 37 */ E_RECONNECT,
	/* 38 */ E_HIGH_PING,
	/* 39 */ E_DIALOG_HACK,
	/* 40 */ E_SANDBOX,
	/* 41 */ E_INVALID_VERSION,
	/* 42 */ E_RCON_HACK,
	/* 43 */ E_TUNING_CRASHER,
	/* 44 */ E_INVALID_SEAT_CRASHER,
	/* 45 */ E_DIALOG_CRASHER,
	/* 46 */ E_ATTACHED_OBJECT_CRASHER,
	/* 47 */ E_WEAPON_CRASHER,
	/* 48 */ E_FLOOD_PROTECTION,
	/* 49 */ E_FLOOD_CALLBACKS,
	/* 50 */ E_FLOOD_CHANGE_SEAT,
	/* 51 */ E_DDOS,
	/* 52 */ E_NOPs
};

enum _:ACListOfCallbacks {
	E_OnDialogResponse,
	E_OnEnterExitModShop,
	E_OnPlayerClickMap,
	E_OnPlayerClickPlayer,
	E_OnPlayerClickTextDraw,
	E_OnPlayerCommandText,
	E_OnPlayerEnterVehicle,
	E_OnPlayerExitVehicle,
	E_OnPlayerPickUpPickup,
	E_OnPlayerRequestClass,
	E_OnPlayerSelectedMenuRow,
	E_OnPlayerStateChange,
	E_OnVehicleMod,
	E_OnVehiclePaintjob,
	E_OnVehicleRespray,
	E_OnVehicleDeath,
	E_OnPlayerText,
	E_OnPlayerEnterCheckpoint,
	E_OnPlayerLeaveCheckpoint,
	E_OnPlayerRequestSpawn,
	E_OnPlayerExitedMenu,
	E_OnPlayerEnterRaceCheckpoint,
	E_OnPlayerLeaveRaceCheckpoint,
	E_OnPlayerClickPlayerTextDraw,
	E_OnVehicleDamageStatusUpdate,
	E_OnVehicleSirenStateChange,
	E_OnPlayerSelectObject,
	E_CrossPublic
};
link: http://pastebin.com/raw.php?i=mjvLqRN2

What I changed:
- Added enum elements instead of just index numbers to main arrays for code readability.
- Changed few ACAllow default values to false.
- Added check in OnFoot-Teleport detection if player was spawned a moment ago.
- Moved translations to the main file (my preference, it's easy to translate few lines by yourself, so why bother with 2 files, since code should be recompiled anyways).

GitHub would be so good to maintain this amount of open source code :/ Please use it...
Reply
#45

I think anti-God mode is bugged because I got the Deagle, took away my armor, and claims that I have God Mode
Reply
#46

First: anti-cheat is very great, nice one!
Second: Spanish version is so ugly, if you want, I can translate it to Spanish
Reply
#47

Quote:
Originally Posted by theYiin
Посмотреть сообщение
Awesome work man!

Few bugs:

...

link: http://pastebin.com/raw.php?i=mjvLqRN2

What I changed:
- Added enum elements instead of just index numbers to main arrays for code readability.
- Changed few ACAllow default values to false.
- Added check in OnFoot-Teleport detection if player was spawned a moment ago.
- Moved translations to the main file (my preference, it's easy to translate few lines by yourself, so why bother with 2 files, since code should be recompiled anyways).
Oh thank you! I consider all your suggestions, especially, thank you for reporting bugs

Quote:
Originally Posted by EnzoMetlc
Посмотреть сообщение
First: anti-cheat is very great, nice one!
Second: Spanish version is so ugly, if you want, I can translate it to Spanish
Of course) I will be happy of any improvements translate
Reply
#48

That's alot of anti-cheats, very nice work.
Reply
#49

I agree with Yashas use Github for we can help you improve this.

You need to improve the AC because some things are not working properly.

Nice try
Reply
#50

It has problems with YSI included:

Код:
C:\Users\BEAST\****** Drive\Samp Projects\Pawno\include\YSI\y_hooks/impl.inc(1265) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint")
C:\Users\BEAST\****** Drive\Samp Projects\Pawno\include\YSI\y_hooks/impl.inc(1308) : warning 201: redefinition of constant/macro (symbol "OnPlayerLeaveRaceCheckpoint")
C:\Users\BEAST\****** Drive\Samp Projects\Pawno\include\YSI\y_hooks/impl.inc(1752) : warning 201: redefinition of constant/macro (symbol "OnVehicleDamageStatusUpdate")
C:\Users\BEAST\****** Drive\Samp Projects\Pawno\include\YSI\y_hooks/impl.inc(2907) : warning 201: redefinition of constant/macro (symbol "OnPlayerClickPlayerTextDraw")

C:\Users\BEAST\****** Drive\Samp Projects\Pawno\include\nex-ac.inc(3810) : warning 202: number of arguments does not match definition
C:\Users\BEAST\****** Drive\Samp Projects\Pawno\include\nex-ac.inc(3810) : warning 202: number of arguments does not match definition
C:\Users\BEAST\****** Drive\Samp Projects\Pawno\include\nex-ac.inc(3810) : warning 202: number of arguments does not match definition
C:\Users\BEAST\****** Drive\Samp Projects\Pawno\include\nex-ac.inc(3832) : error 025: function heading differs from prototype
Reply
#51

This problem occurs when you use y_hooks and als_hooks at the same time, you can simply change the als_hook definition for example adding another letter at the end and it will fix this issue.
Reply
#52

PT/BR Translation: http://pastebin.com/Ps14XrLi
Reply
#53

Improved English version: http://pastebin.com/epQefUdZ
Reply
#54

New Version v1.1
Changes:
Compatible with Streamer Plugin
Compatible with y_hooks
Minor optimization

Fixes:
Increased certain values and the distance considering ping
Fixed a bug with a pick up similar weapons on the pickups
Fixed a bug with a kick when spawn and then install the player position/interior
Fixed a bug with a kick when spawn and then install the player weapons (if used AddPlayerClass/Ex)
Fixed crash when calling ShowPlayerDialog in CallRemoteFunction

I express my special thanks to the users Yashas, theYiin and everyone who participated in the development of the project!

Download: See the first post
Reply
#55

Has include option to turn off some checks(like for anti weapon hack or anti health hack)? If not, you should add that possibility with macro definition(eg. #define AC_HEALTH 1 .... #if AC_HEALTH == 1 // code #endif)...
Reply
#56

Nice one.
But, wait, anti DDoS?
I'll do Croatian translation in a couple of days.
Reply
#57

Quote:
Originally Posted by dominik523
View Post
Nice one.
But, wait, anti DDoS?
That won't help, you can't stop DDoS, only with hardware you can slow down DDoS
Reply
#58

Well, yeah.
OP: If you meant anti-dos, please change that.
Reply
#59

Quote:
Originally Posted by dominik523
View Post
Nice one.
But, wait, anti DDoS?
To simplify the understanding..
Anti-flood Messages Received (detects sudden changes "upwards")

upd. tnx, I'll change it)

Quote:
Originally Posted by vannesenn
View Post
Has include option to turn off some checks(like for anti weapon hack or anti health hack)? If not, you should add that possibility with macro definition(eg. #define AC_HEALTH 1 .... #if AC_HEALTH == 1 // code #endif)...
In the source code have an array of "ACAllow", where you can enable or disable some detections by id
Reply
#60

Why you use array when you can do it with macros?
Reply


Forum Jump:


Users browsing this thread: 9 Guest(s)