SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 10/07/2020, 09:39 AM   #1351
OstGot
Gangsta
 
OstGot's Avatar
 
Join Date: Mar 2013
Location: Gomel, Belarus
Posts: 959
Reputation: 347
Default Re: Nex-AC - Anticheat system

Quote:
Originally Posted by xRadical3 View Post
I still don't know what to do.
See the image then chat box: https://ibb.co/FHPtLvf
Players play normally and are suddenly warned cheat code 4.

Then what seems strange is that when these warns were sent, the interior of the players changed to random numbers.
I'm sure this is a problem with nex-ac, not my script.
In the image, you can see that there were some players in the stadium suddenly changed they interior and threw it into the water.

I'm sorry, but I think there are some mistakes in line 4156.
pawn Code:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) //4151
SetPlayerInterior(playerid, ACInfo[playerid][acInt]); //4156
Why do players' interiors change randomly?
Firstly, code 004 is anti-teleport hack into/between vehicles and not onfoot teleport.
If you're getting your players teleported to some random interiors, log all the places in each your script where it happens (where SetPlayerInterior is used without a specific interior number) so that you could see what exactly is called when a player face this.

As for the line 4156 in the ac, this calls only if that player were teleported in any interior by some hacks in OnEnterExitModShop (as we can't desync this callback natively, we are forced to prevent all the consequences of its use for the driver and all passengers of the vehicle), but if it was the case, you would see the detection of code 023 in the logs before.
__________________
aka Nexius
Don't want to always check for updates of my scripts?
Include it the last, after all others
Nexius's Update Checker
OstGot is offline   Reply With Quote
Old 11/07/2020, 01:47 PM   #1352
xRadical3
Gangsta
 
Join Date: May 2017
Location: Iran
Posts: 684
Reputation: 63
Default Re: Nex-AC - Anticheat system

Quote:
Originally Posted by OstGot View Post
Firstly, code 004 is anti-teleport hack into/between vehicles and not onfoot teleport.
If you're getting your players teleported to some random interiors, log all the places in each your script where it happens (where SetPlayerInterior is used without a specific interior number) so that you could see what exactly is called when a player face this.

As for the line 4156 in the ac, this calls only if that player were teleported in any interior by some hacks in OnEnterExitModShop (as we can't desync this callback natively, we are forced to prevent all the consequences of its use for the driver and all passengers of the vehicle), but if it was the case, you would see the detection of code 023 in the logs before.

I disabled Anti-Nop's (052) and i not have more issuses and player interior not changed randomly.
Thx for your reply.
xRadical3 is offline   Reply With Quote
Old 11/07/2020, 11:54 PM   #1353
OstGot
Gangsta
 
OstGot's Avatar
 
Join Date: Mar 2013
Location: Gomel, Belarus
Posts: 959
Reputation: 347
Default Re: Nex-AC - Anticheat system

Quote:
Originally Posted by JaviStars View Post
Hello!

I've noticed that this code allows just 1 player for each ip.
When 2 players try to play from the same net simultaneously, one of them always gets disconnected.

Is there any way to disable or edit the connection limit without editing the include?

Thank You.
You can configure it by
pawn Code:
#define AC_MAX_CONNECTS_FROM_IP <1 by default>
__________________
aka Nexius
Don't want to always check for updates of my scripts?
Include it the last, after all others
Nexius's Update Checker
OstGot is offline   Reply With Quote
Old 06/08/2020, 02:19 PM   #1354
JR_Junior
Huge Clucker
 
Join Date: Nov 2011
Location: Brazil
Posts: 231
Reputation: 54
Default Re: Nex-AC - Anticheat system

What exactly does the anti quick turn detect? I've never seen a cheat related to that. I pressed DEL with so...eit to rotate the vehicle quickly but it was not detected, I used a cleo mod that changes direction quickly while moving on foot, but it was also not detected.
__________________
"You can disrespect peoples work, but then don't be surprised when they go away." - Kalcor
JR_Junior is offline   Reply With Quote
Old 07/08/2020, 11:50 PM   #1355
OstGot
Gangsta
 
OstGot's Avatar
 
Join Date: Mar 2013
Location: Gomel, Belarus
Posts: 959
Reputation: 347
Default Re: Nex-AC - Anticheat system

Quote:
Originally Posted by JR_Junior View Post
What exactly does the anti quick turn detect? I've never seen a cheat related to that. I pressed DEL with so...eit to rotate the vehicle quickly but it was not detected, I used a cleo mod that changes direction quickly while moving on foot, but it was also not detected.
It detects quick turns on 180 degrees in vehicle. In this case you must gain some speed before that
__________________
aka Nexius
Don't want to always check for updates of my scripts?
Include it the last, after all others
Nexius's Update Checker
OstGot is offline   Reply With Quote
Old 12/08/2020, 02:46 AM   #1356
Leaky
Big Clucker
 
Join Date: Jul 2018
Posts: 93
Reputation: 12
Default Re: Nex-AC - Anticheat system

Went ahead and tested this with a mod menu, teleport wasn't detected and god mod, will there be a update which can fix these?
__________________
Leaky is offline   Reply With Quote
Old 12/08/2020, 03:14 AM   #1357
OstGot
Gangsta
 
OstGot's Avatar
 
Join Date: Mar 2013
Location: Gomel, Belarus
Posts: 959
Reputation: 347
Default Re: Nex-AC - Anticheat system

Quote:
Originally Posted by Leaky View Post
Went ahead and tested this with a mod menu, teleport wasn't detected and god mod, will there be a update which can fix these?
They're both detected, you just should:
As for anti-teleport, DisableInteriorEnterExits turns on an additional check for long distance teleport (without this it will detect only short distance teleports)
And as for anti-godmode, it detects only bullet invulnerability, so try to damage a player with some short delays between shots from bullet weapon.
__________________
aka Nexius
Don't want to always check for updates of my scripts?
Include it the last, after all others
Nexius's Update Checker
OstGot is offline   Reply With Quote
Old 31/08/2020, 04:49 PM   #1358
SkyHDTV
Little Clucker
 
Join Date: Jun 2017
Posts: 12
Reputation: 0
Default Re: Nex-AC - Anticheat system

Can you help me? I have tried all the methods of solution but I continue with these errors:

[pawn] warning 202: number of arguments does not match definition
error 025: function heading differs from prototype [/ pawn]

My Includes:
pawn Code:
#include <a_samp>
#include "../include/sscanf2.inc"
#include <nex-ac>
#include "../include/streamer.inc"
#include "../include/colandreas.inc"
#include "../include/regex.inc"
#include "../include/yoursql.inc"
#include "../include/attachmentfix.inc"
#include "../include/kickbanfix.inc"
#include "../include/colors.inc"
#include "../include/spectate.inc"
#include "../include/gangzones.inc"
#include "../include/izcmd.inc"
#include "../include/foreach.inc"
#include "../include/progress2.inc"
#include "../include/spikestrip.inc"
#include "../include/timestamptodate.inc"
SkyHDTV is offline   Reply With Quote
Old 31/08/2020, 09:22 PM   #1359
OstGot
Gangsta
 
OstGot's Avatar
 
Join Date: Mar 2013
Location: Gomel, Belarus
Posts: 959
Reputation: 347
Default Re: Nex-AC - Anticheat system

Quote:
Originally Posted by SkyHDTV View Post
pawn Code:
warning 202: number of arguments does not match definition
error 025: function heading differs from prototype
Find those lines on which you get the errors, you probably should see some callback name on each of that line. After that, check this callback's arguments in your gamemode and other scripts for its relevance and compliance with the arguments that are declared in the default samp includes for this callback.
__________________
aka Nexius
Don't want to always check for updates of my scripts?
Include it the last, after all others
Nexius's Update Checker
OstGot is offline   Reply With Quote
Old 01/09/2020, 09:00 PM   #1360
SkyHDTV
Little Clucker
 
Join Date: Jun 2017
Posts: 12
Reputation: 0
Default Re: Nex-AC - Anticheat system

I managed to solve the error of the prototype added this line in my gm

pawn Code:
public OnPlayerClickPlayer (playerid, clickedplayerid, source)

It compiled normally without errors, but when typing a command in game, nothing happens, no message appears and the command does not execute.
SkyHDTV 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
Working AntiCheat system mrxqware Scripting Help 4 02/05/2014 11:04 AM
[Include] System AntiCheat V1.1 Glad2BeHere Includes 13 04/03/2013 07:33 PM
-AntiCheat System geohareas Scripting Help 5 08/01/2013 06:38 PM
[FilterScript] [FS] ZAdmin v1.0 | ADMIN SYSTEM + REGISTER + ANTICHEAT + ANTIFLOOD + ANTISWEAR. [ZFM]Zuc Filterscripts 24 25/05/2011 09:19 AM


All times are GMT. The time now is 06:57 PM.


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