SA-MP Forums Archive
[Include] Nex-AC - Anticheat system - 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)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Nex-AC - Anticheat system (/showthread.php?tid=579963)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31


Re: Nex-AC - Anticheat system - DeitY - 03.07.2015

http://pastebin.com/6SyuxmqM

Serbian translation.

BTW when you will finish streamer integration with your anticheat?


Re: Nex-AC - Anticheat system - Q_Lite - 03.07.2015

Super include, trиs bien!


Re: Nex-AC - Anticheat system - OstGot - 03.07.2015

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)


Re: Nex-AC - Anticheat system - theYiin - 03.07.2015

Awesome work man!

Few bugs: 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...


Re: Nex-AC - Anticheat system - wampiros6 - 03.07.2015

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


Respuesta: Nex-AC - Anticheat system - Swedky - 03.07.2015

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


Re: Nex-AC - Anticheat system - OstGot - 03.07.2015

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


Re: Nex-AC - Anticheat system - Lynn - 03.07.2015

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


Re: Nex-AC - Anticheat system - PT - 04.07.2015

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


Re: Nex-AC - Anticheat system - Gigi-The-Beast - 04.07.2015

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



Re: Nex-AC - Anticheat system - Patrick - 04.07.2015

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.


Re: Nex-AC - Anticheat system - Locky_ - 04.07.2015

PT/BR Translation: http://pastebin.com/Ps14XrLi


Re: Nex-AC - Anticheat system - Kyle - 04.07.2015

Improved English version: http://pastebin.com/epQefUdZ


Re: Nex-AC - Anticheat system - OstGot - 04.07.2015

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


Re: Nex-AC - Anticheat system - vannesenn - 04.07.2015

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)...


Re: Nex-AC - Anticheat system - dominik523 - 04.07.2015

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


Re: Nex-AC - Anticheat system - vannesenn - 04.07.2015

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


Re: Nex-AC - Anticheat system - dominik523 - 04.07.2015

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


Re: Nex-AC - Anticheat system - OstGot - 04.07.2015

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


Re: Nex-AC - Anticheat system - vannesenn - 04.07.2015

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