SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 05/01/2017, 11:18 PM   #551
Juonis
Little Clucker
 
Join Date: Aug 2016
Posts: 23
Reputation: 0
Default Re: Nex-AC - Anticheat system

When PLAYER1 is spectating PLAYER2 and PLAYER2 gets kicked for whatever reason (in this case hacks) then PLAYER1 will be kicked out of the server (this line reacts even anticheats are off);
Quote:
default: //All others cheats
{
static strtmp[sizeof KICK_MSG];
format(strtmp, sizeof strtmp, KICK_MSG, code); //Another way to say goodbye
SendClientMessage(playerid, -1, strtmp);
}

How can I fix that?
Juonis is offline   Reply With Quote
Old 06/01/2017, 12:26 AM   #552
OstGot
Gangsta
 
OstGot's Avatar
 
Join Date: Mar 2013
Location: Gomel, Belarus
Posts: 865
Reputation: 325
Default Re: Nex-AC - Anticheat system

Quote:
Originally Posted by Juonis View Post
When PLAYER1 is spectating PLAYER2 and PLAYER2 gets kicked for whatever reason (in this case hacks) then PLAYER1 will be kicked out of the server (this line reacts even anticheats are off);



How can I fix that?
If you are using in your gm public OnCheatDetected, you can add to switch the following case:
PHP Code:
case 21: return 1//Unless, of course, triggered exactly code 21? 
Although better if you describe your problem specifically. For example, what writes to the console at the time of kick?
__________________
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/01/2017, 03:19 PM   #553
Juonis
Little Clucker
 
Join Date: Aug 2016
Posts: 23
Reputation: 0
Default Re: Nex-AC - Anticheat system

Quote:
Originally Posted by OstGot View Post
If you are using in your gm public OnCheatDetected, you can add to switch the following case:
PHP Code:
[B]case 21: return 1//Unless, of course, triggered exactly code 21?[/B] 
Although better if you describe your problem specifically. For example, what writes to the console at the time of kick?
Thanks this helped. Also if player takes guns from pickup in server he/she gets kicked, can I turn off all the 'anticheats' for specific period of time, what should I do to prevent kicking player for taking guns from pickup? Players for taking guns using a pickup are kicked with "add ammo" anticheat.
Also innocent players are kicked for NOP even though they are not cheating; when player enter a vehicle and then leaves (not always, sometimes).

Also if you are using shotgun and switch to AK or M4 and shoot (with a short period of time) you will be punished for rapid.


So, how do I give weapons in order not to be kicked? I am using GetPlayerWeaponEx now.

Last edited by Juonis; 07/01/2017 at 04:36 PM.
Juonis is offline   Reply With Quote
Old 09/01/2017, 09:55 PM   #554
OstGot
Gangsta
 
OstGot's Avatar
 
Join Date: Mar 2013
Location: Gomel, Belarus
Posts: 865
Reputation: 325
Default Re: Nex-AC - Anticheat system

Quote:
Originally Posted by Juonis View Post
Thanks this helped. Also if player takes guns from pickup in server he/she gets kicked, can I turn off all the 'anticheats' for specific period of time, what should I do to prevent kicking player for taking guns from pickup? Players for taking guns using a pickup are kicked with "add ammo" anticheat.
Also innocent players are kicked for NOP even though they are not cheating; when player enter a vehicle and then leaves (not always, sometimes).

Also if you are using shotgun and switch to AK or M4 and shoot (with a short period of time) you will be punished for rapid.


So, how do I give weapons in order not to be kicked? I am using GetPlayerWeaponEx now.
About pickups and entering vehicles: may you show me the server log with kick messages in that period in debug mode?
You also can use "EnableAntiCheatForPlayer" function to enable or disable specifically anti-cheat code for player, just use it when you want to disable it and after some time enable it again, if you want.
As about rapid fire, I tested it, but unfortunately didn't saw anything


New Version v1.9.17

Changes:
* Added check for the validity of the pickup when a player picks it up
* Increased the minimum distance of detection AirBreak onfoot

Fixes:
* Fixed anti-CJ run with a kick for landing on parachute (holding 'S' key)
* Fixed anti-FlyHack with parachutist animation

Download: See the first post
__________________
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/01/2017, 02:48 PM   #555
PetritImeri
Big Clucker
 
Join Date: Sep 2016
Posts: 76
Reputation: 58
Default Re: Nex-AC - Anticheat system

Can you help me how to fix?
http://imgur.com/a/taqg6
__________________
BIG ALBANIA
PetritImeri is offline   Reply With Quote
Old 21/01/2017, 12:16 AM   #556
renatog
Huge Clucker
 
Join Date: Mar 2016
Posts: 328
Reputation: 48
Default Re: Nex-AC - Anticheat system

Why don't you use Git properly? You create a ton of folders for each version of the include. You are using GitHub, but you aren't using Git version control, that does exactly what you want, but better in visual and organization. We can't see exaclty what you modified in each version, not without wasting time checking every file or putting them in an online text diff (which can't detect all diffs). You can use "release" feature to manage releases.
And... look at this:

We have to find the latest version.

Don't get me wrong, I'm just trying to help you help the users.
This is a huge anti-cheater lib, thanks for share. Maybe I use it.
renatog is offline   Reply With Quote
Old 21/01/2017, 03:46 PM   #557
czop1223
Little Clucker
 
Join Date: Jul 2012
Posts: 48
Reputation: 0
Default Re: Nex-AC - Anticheat system

Hello Ost. The Anti infinit eammo funcion doesnt work for me.
czop1223 is offline   Reply With Quote
Old 21/01/2017, 11:29 PM   #558
diclofoss
Little Clucker
 
Join Date: Apr 2013
Posts: 30
Reputation: 14
Default Re: Nex-AC - Anticheat system

Hello!
I have an issue in san fierro
I always kicked by #3 when trying to win vehicle school quest.
diclofoss is offline   Reply With Quote
Old 23/01/2017, 06:00 AM   #559
OstGot
Gangsta
 
OstGot's Avatar
 
Join Date: Mar 2013
Location: Gomel, Belarus
Posts: 865
Reputation: 325
Default Re: Nex-AC - Anticheat system

Quote:
Originally Posted by PetritImeri View Post
Can you help me how to fix?
http://imgur.com/a/taqg6
You do not need to paste the code in your script from include.
Just try to open the script by pawno which is located near the include folder

Quote:
Originally Posted by diclofoss View Post
Hello!
I have an issue in san fierro
I always kicked by #3 when trying to win vehicle school quest.
Can you show me the code which is executed at the time of detection?

Quote:
Originally Posted by renatog View Post
Why don't you use Git properly? You create a ton of folders for each version of the include. You are using GitHub, but you aren't using Git version control, that does exactly what you want, but better in visual and organization. We can't see exaclty what you modified in each version, not without wasting time checking every file or putting them in an online text diff (which can't detect all diffs). You can use "release" feature to manage releases.
Thank you. Honestly, I've tried to do this through a structure with releases before, but at that time knowledge of Git is not allowed me to do it. If I will have time, maybe I'll try to do it
__________________
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 26/01/2017, 11:22 AM   #560
Juonis
Little Clucker
 
Join Date: Aug 2016
Posts: 23
Reputation: 0
Default Re: Nex-AC - Anticheat system

How;
- When I add player ammo (if he has a gun), players are kicked for adding ammo. How can I disable it when they take ammo from a gun pickup or etc? But it would work if it is with sob?
- NOP's free kicks. Sit in heli - kicked and etc. Also with teleports, jumping off a bike - kick.
Juonis 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 12:04 PM
[Include] System AntiCheat V1.1 Glad2BeHere Includes 13 04/03/2013 08:33 PM
-AntiCheat System geohareas Scripting Help 5 08/01/2013 07:38 PM
[FilterScript] [FS] ZAdmin v1.0 | ADMIN SYSTEM + REGISTER + ANTICHEAT + ANTIFLOOD + ANTISWEAR. [ZFM]Zuc Filterscripts 24 25/05/2011 10:19 AM


All times are GMT. The time now is 11:53 PM.


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