SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 28/07/2018, 05:18 PM   #1001
ICSharp
Little Clucker
 
Join Date: Jul 2018
Posts: 2
Reputation: 0
Default Re: Nex-AC - Anticheat system

Something is not working with this in script, but it seems to be correctly


-> From nex-ac.inc Line 6366
#if defined ac_OnVehicleDeath
forward ac_OnVehicleDeath(vehicleid, killerid);
ICSharp is offline   Reply With Quote
Old 28/07/2018, 10:18 PM   #1002
Eutro07
Little Clucker
 
Join Date: Apr 2013
Posts: 25
Reputation: 0
Default Re: Nex-AC - Anticheat system

Quote:
Originally Posted by Logic_ View Post
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.
i fixed it all thanks anyway, to the others with issues i recomend this: https://github.com/NexiusTailer/Nex-AC/issues/50
and also update your streamer plugin!

Last edited by Eutro07; 28/07/2018 at 11:11 PM.
Eutro07 is offline   Reply With Quote
Old 31/07/2018, 07:31 AM   #1003
SecretMax
Little Clucker
 
SecretMax's Avatar
 
Join Date: May 2017
Location: Hungary
Posts: 24
Reputation: 0
Default Re: Nex-AC - Anticheat system

I have a little problem, when I set interior by SetPlayerInterior the AC kick for teleport cheat (code 002)

What can I do?
SecretMax is offline   Reply With Quote
Old 05/08/2018, 12:16 PM   #1004
MP2
Godfather
 
MP2's Avatar
 
Join Date: Jan 2011
Location: England
Posts: 6,203
Reputation: 975
Default Re: Nex-AC - Anticheat system

Is it possible to disable the automatic kicking of players with this? I just want to control the kicking/banning etc. from my own script. I have looked through the documentation and script and there is nothing regarding this mentioned?



I was kicked for warping to the ground from the sky, which is part of my server-sided air-breaking system. Surely this shouldn't be detected as a cheat if SetPlayerPos was used?

Also
Quote:
* Setting anticheat from file
The settings is located in a separate file (scriptfiles\nex-ac_settings.cfg)
Where is this file from? It is not included in the download. I gather it is just the definitions the same as in the include e.g. AC_MAX_CONNECTS_FROM_IP. Is it just these settings or are there other settings to be defined in there that aren't explicitly mentioned in the include file?
MP2 is offline   Reply With Quote
Old 12/08/2018, 09:37 PM   #1005
OstGot
Gangsta
 
OstGot's Avatar
 
Join Date: Mar 2013
Location: Gomel, Belarus
Posts: 793
Reputation: 320
Default Re: Nex-AC - Anticheat system

Quote:
Originally Posted by SecretMax View Post
I have a little problem, when I set interior by SetPlayerInterior the AC kick for teleport cheat (code 002)

What can I do?
Provide all the detailed information on this case, including anticheat logs at the time of the kick.

Quote:
Originally Posted by MP2 View Post
Is it possible to disable the automatic kicking of players with this? I just want to control the kicking/banning etc. from my own script. I have looked through the documentation and script and there is nothing regarding this mentioned?
You can configure your own punishments instead of the default ones via public OnCheatDetected. An example of this can be found here. Also see "Functions" section in the first post.

Quote:
Originally Posted by MP2 View Post
I was kicked for warping to the ground from the sky, which is part of my server-sided air-breaking system. Surely this shouldn't be detected as a cheat if SetPlayerPos was used?
Yes, it shouldn't. I don't know why you were kicked. Show the basic code that could reproduce this.

Quote:
Originally Posted by MP2 View Post
Where is this file from? It is not included in the download. I gather it is just the definitions the same as in the include e.g. AC_MAX_CONNECTS_FROM_IP. Is it just these settings or are there other settings to be defined in there that aren't explicitly mentioned in the include file?
This file is created automatically at the first start of the server with the included anticheat. Later it will be in the scriptfiles folder.
__________________
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 13/08/2018, 01:11 PM   #1006
SecretMax
Little Clucker
 
SecretMax's Avatar
 
Join Date: May 2017
Location: Hungary
Posts: 24
Reputation: 0
Default Re: Nex-AC - Anticheat system

Code:
if(IsPlayerInRangeOfPoint( playerid, 1.0, 1359.8430,205.7105,19.7555))
{//hospital enter
      SetPlayerPos( playerid, -2158.9631, 641.4844, 1052.3817 );
      SetPlayerFacingAngle( playerid, 180.0 );
      SetCameraBehindPlayer( playerid );
      SetPlayerInterior(playerid, 1);
      Object(playerid);
}
if(IsPlayerInRangeOfPoint( playerid, 1.0, -2158.6306, 643.1417, 1052.3750))
{//hospital exit
      SetPlayerPos(playerid, 1360.6367,207.4322,19.5547);
      SetPlayerFacingAngle( playerid, 335.3321 );
      SetCameraBehindPlayer( playerid );
      SetPlayerInterior(playerid, 0);
      Object(playerid);
}

Code:
[15:05:35] [Nex-AC debug] AC interior: -1, acInt (last): 0, newinteriorid: 1, oldinteriorid: 0
[15:05:35] [Nex-AC] Suspicious player (ID 1).Reason code: 002 (1)
SecretMax is offline   Reply With Quote
Old 13/08/2018, 07:21 PM   #1007
OstGot
Gangsta
 
OstGot's Avatar
 
Join Date: Mar 2013
Location: Gomel, Belarus
Posts: 793
Reputation: 320
Default Re: Nex-AC - Anticheat system

Quote:
Originally Posted by SecretMax View Post
Code:
if(IsPlayerInRangeOfPoint( playerid, 1.0, 1359.8430,205.7105,19.7555))
{//hospital enter
      SetPlayerPos( playerid, -2158.9631, 641.4844, 1052.3817 );
      SetPlayerFacingAngle( playerid, 180.0 );
      SetCameraBehindPlayer( playerid );
      SetPlayerInterior(playerid, 1);
      Object(playerid);
}
if(IsPlayerInRangeOfPoint( playerid, 1.0, -2158.6306, 643.1417, 1052.3750))
{//hospital exit
      SetPlayerPos(playerid, 1360.6367,207.4322,19.5547);
      SetPlayerFacingAngle( playerid, 335.3321 );
      SetCameraBehindPlayer( playerid );
      SetPlayerInterior(playerid, 0);
      Object(playerid);
}
Where is this code called? And what contains Object(playerid) function?
__________________
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 14/08/2018, 08:30 AM   #1008
SecretMax
Little Clucker
 
SecretMax's Avatar
 
Join Date: May 2017
Location: Hungary
Posts: 24
Reputation: 0
Default Re: Nex-AC - Anticheat system

Under the OnPlayerKeyStateChange.

The object function freeze the player because dynamicobject load slowly

Code:
public Object(playerid)
{
	TogglePlayerControllable(playerid, false);
	PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
	Information(playerid,"Wait for the objects...");
	SetTimerEx("ObjectOff", 2000, 0,"d",playerid);
	return 1;
}

public ObjectOff(playerid)
{
	PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
	Information(playerid,"Objects loaded!");
		
	TogglePlayerControllable(playerid, true);


	return 1;
}
SecretMax is offline   Reply With Quote
Old 14/08/2018, 12:06 PM   #1009
OstGot
Gangsta
 
OstGot's Avatar
 
Join Date: Mar 2013
Location: Gomel, Belarus
Posts: 793
Reputation: 320
Default Re: Nex-AC - Anticheat system

Quote:
Originally Posted by SecretMax View Post
Under the OnPlayerKeyStateChange.

The object function freeze the player because dynamicobject load slowly

Code:
public Object(playerid)
{
	TogglePlayerControllable(playerid, false);
	PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
	Information(playerid,"Wait for the objects...");
	SetTimerEx("ObjectOff", 2000, 0,"d",playerid);
	return 1;
}

public ObjectOff(playerid)
{
	PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
	Information(playerid,"Objects loaded!");
		
	TogglePlayerControllable(playerid, true);


	return 1;
}
So I tested it on a blank gamemode (with included ac) and all is ok...

https://imgur.com/a/SPLnDo0

I think you need to check whether anything prevents from the call of SetPlayerInterior function which is hooked in anticheat (maybe there are some other hooks somewhere that are done not correctly).
__________________
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 15/08/2018, 07:05 PM   #1010
Zamek
Little Clucker
 
Join Date: Jun 2016
Posts: 26
Reputation: 0
Default Re: Nex-AC - Anticheat system

https://www.*******.com/watch?v=OjetGv1GJ7g

Please, protect it!
[CLEO] Anti - Car Collision.
Zamek 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 04:36 PM.


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