[Include] Nex-AC - Anticheat system

Quote:
Originally Posted by OstGot
Посмотреть сообщение
If you are using public OnCheatDetected - this will be fixed in the next version.
Yes,

Код:
forward OnCheatDetected(playerid, ip_address[], type, code);
public OnCheatDetected(playerid, ip_address[], type, code)
{
    if(code == 14)
    {
          new a = AntiCheatGetMoney(playerid);
          ResetPlayerMoney(playerid);
          GivePlayerMoney(playerid, a);
          return 1;       
    }
    return 1;
}
Reply

When player was spawned after connect, they'll be kicked for reason 052, can you help me?
Reply

Quote:
Originally Posted by MustafaKemalAtaturk
Посмотреть сообщение
When player was spawned after connect, they'll be kicked for reason 052, can you help me?
You need to provide the server log with this kick.
Reply

New Version v1.9.39
Changes:
* Improved anti-AirBreak onfoot
* Improved anti-CarShot from passenger seat
* Changed the default punishment for anti-money hack
* Improved protection from fake teleport to default modshops
* Improved desync of the cheater before kick, especially if using OnCheatDetected
* Added warnings for anti-FlyHack onfoot with cyclist animation
* Added check for invalid vehicleid in OnPlayerExitVehicle
* Added check for invalid bodypart in OnPlayerTakeDamage
* Improved anti-fake kill

Fixes:
* Tweaked anti-rapid fire for Desert Eagle
* Improved anti-infinite ammo hack for some weapons
* Fixed a bug in anti-NOPs with a kick for NOP RemovePlayerFromVehicle when the player couldn't get off the vehicle at high speed
* Fixed a bug in anti-weapon hack with a kick for getting parachute when changing the server's vehicle and leaving the last one
* Fixed a bug in anti-special action hack with a kick when re-picking a jetpack
* Minor improvements and bugfixes

Download: GitHub
Reply

Anti health hack (in vehicle) - When enabled, any vehicle health decreases and goes on fire whenever player enter it and triggers warnings for cheating.

Anti flood callback functions - I changed OnCheatDetected so admins receive warnings.. I got spammed for this on multiple users but I'm sure they are not cheating.

Anti NOPs - I had to turn it off because It was giving warnings randomly, mostly when player spawns.

Anti teleport hack ( Vehicle to player ) - I often receive the warnings even though the player is not cheating 100%.

My server version is 0.3DL with 0.3.7 compat. It tells me that it's not suitable for it but I doubt that's really the problem.

Other than that, it's awesome, keep it up!
Reply

Quote:
Originally Posted by Iguman
Посмотреть сообщение
Anti health hack (in vehicle) - When enabled, any vehicle health decreases and goes on fire whenever player enter it and triggers warnings for cheating.
This is most likely because you have included anticheat to some filterscript that doesn't have an authentication define before it (#define FILTERSCRIPT) and as a result you have two separate anticheats in the filterscript and gamemode which works asynchronously.

Quote:
Originally Posted by Iguman
Посмотреть сообщение
Anti flood callback functions - I changed OnCheatDetected so admins receive warnings.. I got spammed for this on multiple users but I'm sure they are not cheating.
Quote:
Originally Posted by Iguman
Посмотреть сообщение
Anti NOPs - I had to turn it off because It was giving warnings randomly, mostly when player spawns.
I need to see the specific cases where there are anticheat logs (in server_log.txt) at the time of those kicks, and the exact certainty that the player was kicked falsely.

Quote:
Originally Posted by Iguman
Посмотреть сообщение
Anti teleport hack ( Vehicle to player ) - I often receive the warnings even though the player is not cheating 100%.
Yes, because this can also happen when the player leaves the vehicle in the air and when the vehicle falls quickly changing its position (example: jumping out of the helicopter on the fly). That's why the anticheat doesn't punish the player who sync teleports of unoccupied vehicle and only returns this vehicle to its previous position, recording this in the log.

Quote:
Originally Posted by Iguman
Посмотреть сообщение
My server version is 0.3DL with 0.3.7 compat. It tells me that it's not suitable for it but I doubt that's really the problem.
No, it's not a problem at all
Reply

Is it work with 0.3DL?
Reply

Quote:
Originally Posted by MustafaKemalAtaturk
Посмотреть сообщение
Is it work with 0.3DL?
yes
Reply

Can someone help me? When I create vehicle with CreateVehicle, this include print some suspicion message on logs.
Reply

i'm getting some warnings and one error:

Код:
\pawno\include\nex-ac.inc(3271) : warning 202: number of arguments does not match definition
\pawno\include\nex-ac.inc(3285) : error 025: function heading differs from prototype
\pawno\include\nex-ac.inc(4984) : warning 201: redefinition of constant/macro (symbol "OnPlayerKeyStateChange")
\gamemodes\truck.pwn(30241) : warning 209: function "ac_OnPlayerSelectedMenuRow" should return a value
Reply

Quote:
Originally Posted by Eutro07
Посмотреть сообщение
i'm getting some warnings and one error:

Код:
\pawno\include\nex-ac.inc(3271) : warning 202: number of arguments does not match definition
\pawno\include\nex-ac.inc(3285) : error 025: function heading differs from prototype
\pawno\include\nex-ac.inc(4984) : warning 201: redefinition of constant/macro (symbol "OnPlayerKeyStateChange")
\gamemodes\truck.pwn(30241) : warning 209: function "ac_OnPlayerSelectedMenuRow" should return a value
Provide us more information about your script. Which SA-MP version includes you're compiling it with, what includes do you use and how you're including the anti cheat.
Reply

While compiling my gamemode with your include, i got this error:

..\pawno\include\nex-ac.inc(6352) : warning 202: number of arguments does not match definition
..\pawno\include\nex-ac.inc(6366) : error 025: function heading differs from prototype
Reply

Quote:
Originally Posted by Zamek
Посмотреть сообщение
https://www.youtube.com/watch?v=OjetGv1GJ7g

Please, protect it!
[CLEO] Anti - Car Collision.
It is impossible to make a defense against this.
Reply

As much as I contributed with a translation, I started to use it a little while and even then, this needs a lot of improvements.

Needs delays for example when player has just spawned.

For when this one has spawned, many times it is accused that it is with some NOP.
Also, if he gets weapons in the spawn, he says he's using Weapon-Hack.

In addition, teleport and airbreak have often been reported in situations where a position has been set.
Also occurred carjack of I stay in a car.
He charged speed if one player pulled out another with a moving vehicle.

Invalid vehicle seat a few times when a player was getting on a plane ..
Reply

Quote:
Originally Posted by Locky_
Посмотреть сообщение
As much as I contributed with a translation, I started to use it a little while and even then, this needs a lot of improvements.

Needs delays for example when player has just spawned.

For when this one has spawned, many times it is accused that it is with some NOP.
Also, if he gets weapons in the spawn, he says he's using Weapon-Hack.

In addition, teleport and airbreak have often been reported in situations where a position has been set.
Also occurred carjack of I stay in a car.
He charged speed if one player pulled out another with a moving vehicle.

Invalid vehicle seat a few times when a player was getting on a plane ..
So I need to see the detailed information of all the specific cases like screens, server logs, etc.
Reply

Quote:
Originally Posted by OstGot
Посмотреть сообщение
So I need to see the detailed information of all the specific cases like screens, server logs, etc.
I'll gather information from the logs shortly.

I also had the problem, some players while tuning the vehicle, was detected Anti-Tunning hack.

Код:
[15:21:48] [Nex-AC] Suspeita no ID 10. Cуdigo de motivo: 044 (1)
[16:06:29] [Nex-AC] Suspeita no ID 4. Cуdigo de motivo: 044 (1)
[17:53:24] [Nex-AC] Suspeita no ID 11. Cуdigo de motivo: 044 (5)
[17:14:54] [Nex-AC] Suspeita no ID 0. Cуdigo de motivo: 044 (5)
[17:26:32] [Nex-AC] Suspeita no ID 8. Cуdigo de motivo: 044 (5)
[17:53:24] [Nex-AC] Suspeita no ID 11. Cуdigo de motivo: 044 (5)
[21:30:04] [Nex-AC debug] Entered veh: 0, veh: 74, veh model: 578, Enter time: 49942
[21:30:04] [Nex-AC] Suspeita no ID 15. Cуdigo de motivo: 004 (1)
[21:30:05] [Nex-AC] Suspeita no ID 15. Cуdigo de motivo: 044 (1)
[23:27:17] [Nex-AC] Suspeita no ID 8. Cуdigo de motivo: 044 (5)
[23:54:18] [Nex-AC debug] Veh model: 495, max seats: 1, seatid: 3
[23:54:18] [Nex-AC] Suspeita no ID 5. Cуdigo de motivo: 044 (4)
Weapon/Ammo
Код:
[15:16:55] [Nex-AC debug] AC weaponid: 0, AC ammo: 32767, weaponid: 43, ammo: 32767
[15:16:55] [Nex-AC] Suspeita no ID 6. Cуdigo de motivo: 015 (1)
[15:16:56] [Nex-AC debug] AC weaponid: 0, AC ammo: 0, weaponid: 28, ammo: 32767
[15:16:56] [Nex-AC] Suspeita no ID 6. Cуdigo de motivo: 015 (2)
[15:16:56] [Nex-AC debug] AC weaponid: 0, AC ammo: 0, weaponid: 30, ammo: 32767
[15:16:56] [Nex-AC] Suspeita no ID 6. Cуdigo de motivo: 015 (2)
[15:16:56] [Nex-AC debug] AC weaponid: 0, AC ammo: 0, weaponid: 34, ammo: 32767
[15:16:56] [Nex-AC] Suspeita no ID 6. Cуdigo de motivo: 015 (2)

[15:27:49] [Nex-AC debug] AC weaponid: 0, AC ammo: 0, weaponid: 3, ammo: -31073
[15:27:49] [Nex-AC] Suspeita no ID 10. Cуdigo de motivo: 015 (2)
[15:27:49] [Nex-AC debug] AC weaponid: 0, AC ammo: 0, weaponid: 22, ammo: 32767
[15:27:49] [Nex-AC] Suspeita no ID 10. Cуdigo de motivo: 015 (2)
[15:27:49] [Nex-AC debug] AC weaponid: 0, AC ammo: 0, weaponid: 25, ammo: 32767
[15:27:49] [Nex-AC] Suspeita no ID 10. Cуdigo de motivo: 015 (2)
[15:27:49] [Nex-AC debug] AC weaponid: 0, AC ammo: 0, weaponid: 28, ammo: 32767
[15:27:49] [Nex-AC] Suspeita no ID 10. Cуdigo de motivo: 015 (2)
[15:27:49] [Nex-AC debug] AC weaponid: 0, AC ammo: 0, weaponid: 30, ammo: 32767
[15:27:49] [Nex-AC] Suspeita no ID 10. Cуdigo de motivo: 015 (2)
[15:27:49] [Nex-AC debug] AC weaponid: 0, AC ammo: 0, weaponid: 34, ammo: 32767
[15:27:49] [Nex-AC] Suspeita no ID 10. Cуdigo de motivo: 015 (2)

[15:48:34] [Nex-AC debug] AC weaponid: 0, AC ammo: 0, weaponid: 35, ammo: 1520
[15:48:34] [Nex-AC] Suspeita no ID 20. Cуdigo de motivo: 015 (1)

[15:49:57] [Nex-AC debug] AC weaponid: 0, AC ammo: 0, weaponid: 1, ammo: -31073
[15:49:57] [Nex-AC] Suspeita no ID 7. Cуdigo de motivo: 015 (2)
[15:49:57] [Nex-AC debug] AC weaponid: 0, AC ammo: 0, weaponid: 3, ammo: -31073
[15:49:57] [Nex-AC] Suspeita no ID 7. Cуdigo de motivo: 015 (2)
[15:49:57] [Nex-AC debug] AC weaponid: 0, AC ammo: 0, weaponid: 22, ammo: -2
[15:49:57] [Nex-AC] Suspeita no ID 7. Cуdigo de motivo: 015 (2)
[15:49:57] [Nex-AC debug] AC weaponid: 0, AC ammo: 0, weaponid: 25, ammo: -2
[15:49:57] [Nex-AC] Suspeita no ID 7. Cуdigo de motivo: 015 (2)
[15:49:57] [Nex-AC debug] AC weaponid: 0, AC ammo: 0, weaponid: 28, ammo: -2
[15:49:57] [Nex-AC] Suspeita no ID 7. Cуdigo de motivo: 015 (2)
[15:49:57] [Nex-AC debug] AC weaponid: 0, AC ammo: 0, weaponid: 30, ammo: -2
[15:49:57] [Nex-AC] Suspeita no ID 7. Cуdigo de motivo: 015 (2)
[15:49:57] [Nex-AC debug] AC weaponid: 0, AC ammo: 0, weaponid: 34, ammo: -2
[15:49:57] [Nex-AC] Suspeita no ID 7. Cуdigo de motivo: 015 (2)

[15:50:07] [Nex-AC debug] AC weaponid: 0, AC ammo: 0, weaponid: 1, ammo: -31073
[15:50:07] [Nex-AC] Suspeita no ID 7. Cуdigo de motivo: 015 (1)
[15:50:07] [Nex-AC debug] AC weaponid: 0, AC ammo: 0, weaponid: 3, ammo: -31073
[15:50:07] [Nex-AC] Suspeita no ID 7. Cуdigo de motivo: 015 (1)
[15:50:07] [Nex-AC debug] AC weaponid: 0, AC ammo: 0, weaponid: 43, ammo: 32767
[15:50:07] [Nex-AC] Suspeita no ID 7. Cуdigo de motivo: 015 (1)
I've attached my entire log, the Nex-AC snippets are from include, where some of the checks I mentioned earlier failed and kicked me in, punished innocent players.

The snippets where [ANTI-CHEAT] are from the Rogue pack, which in turn failed very little and I was able to get around with other simple checks.

I am putting here in my script other checks not to occur to punish innocent players again. But I believe a new check should occur on such anti-cheats in your include.
Reply

New Version v1.9.40
Changes:
* Added warnings for anti-CJ run
* Added AntiCheatGetSpawnPos function
* Improved checks on purchase of weapons in default ammunitions
* Rewritten anti-teleport into vehicle and anti-invalid seat in vehicle
* Added compatibility with Pawn.RakNet (for better desync before kick)
* AntiCheatIsKickedWithDecync now returns 2 if the player was kicked being driver
* Improved anti-teleport and anti-speedhack onfoot, anti-ammo hack and anti-carshot from the passenger seat
* Improved the mechanism of protection from the vehicle teleport after the disconnection of the cheater
* Added protection against forbidden characters (%) in GetPlayerVersion

Fixes:
* Tweaked anti-flood settings
* Fixed anti-infinite ammo hack for some weapons
* Fixed an anti-teleport bypass when the cheater skipped the state PLAYER_STATE_SPAWNED after death/spectating
* Fixed a bug in anti-health hack in vehicle when the hacked hp could be kept after the disconnection of the cheater
* Minor improvements and bugfixes

Download: GitHub
Reply

Vietnamese translate for nex-ac:

https://pastebin.com/c4D8FVMX by Trung.Tin

@OstGot
Reply

Hello.

I got these two errors:
Код:
D:\Trabajo\GitLab\projectx\gameServer\legacy\nex-ac.inc:2978 (error) symbol already defined: "@yH_OnPlayerConnect@003"
D:\Trabajo\GitLab\projectx\gameServer\legacy\nex-ac.inc:3083 (error) symbol already defined: "@yH_OnPlayerDisconnect@003"
Using YSI4, with hooks included before nex-ac.

Thanks.
Reply

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

I got these two errors:
Код:
D:\Trabajo\GitLab\projectx\gameServer\legacy\nex-ac.inc:2978 (error) symbol already defined: "@yH_OnPlayerConnect@003"
D:\Trabajo\GitLab\projectx\gameServer\legacy\nex-ac.inc:3083 (error) symbol already defined: "@yH_OnPlayerDisconnect@003"
Using YSI4, with hooks included before nex-ac.

Thanks.
Kemula, is signaling that it is already defined... :facepalm:

try to modify the library.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)