[Include] Nex-AC - Anticheat system

Quote:
Originally Posted by Irenijus
Посмотреть сообщение
[04/02/2017 13:06:23] OnPlayerDisconnect
[04/02/2017 13:06:23] [part] Ganja_Man has left the server (0:2)
[04/02/2017 13:06:23] [Nex-AC debug] Spawn res: 0, Respawn time: 60167942
[04/02/2017 13:06:23] [Nex-AC] Įtarimas ID 1. Priežasties kodas: 027
Oh, it seems the problem is that when player is leaving, all spectators automatically spawn without calling any functions... Well, I'll try to fix it in the next version

Quote:
Originally Posted by Sunehildeep
Посмотреть сообщение
Well it gives little bit false warnings, I mean the ac health would be 5 and the player health would be 6. A lil bit difference is there.
Can you give a specific situations where this happens?
Reply

Quote:
Originally Posted by OstGot
Посмотреть сообщение
For example?
When I use ac_SetPlayerHealth (playerid, 100.0); The anti cheater accuses the player and expels the same
The same is true when repairing a vehicle
To v1.9.17 is without these problems only version v1.9.18 comes to occur this
Reply

Quote:
Originally Posted by OstGot
Посмотреть сообщение
Can you give a specific situation where this happens?
If you're having roleplay script and you die, you get transferred to hospital and with health regenerating, at that time it kicks out the player for health hack. Too much false warnings when using /goto,/get,/enter and /exit. Totally all the script commands we use which have setplayerpos function returns warnings
Reply

New Version v1.9.19
Fixes:
* Fixed a bug in the anti-fakespawn with a kick for exit from spec mode when observed player is leaving
* Fixed anti-health (onfoot/in vehicle) and armor hack

Download: See the first post
Reply

Let me test the new version. Then if I find any bug I'll report it here.
Reply

http://www.simg.lt/er/error010code.mp4 reason 010 i think u understand.
http://www.simg.lt/er/buynewcarerror052.avi with this video reason 052. Player was buyed car and after she sit in the car.
Reply

Please check cleo:

https://www.youtube.com/watch?v=g1RTG2osyps
Reply

Quote:
Originally Posted by Irenijus
Посмотреть сообщение
http://www.simg.lt/er/buynewcarerror052.avi with this video reason 052. Player was buyed car and after she sit in the car.
Please provide a part of the log, where is written about this kick

Quote:
Originally Posted by Brocky
Посмотреть сообщение
So I checked. Most of the commands are detected and prevented by anticheat code 4 (anti-tp in vehicle).
The only one command that didn't work for me is "/TB.KICK [id]"
Reply

Quote:
Originally Posted by OstGot
Посмотреть сообщение
Please provide a part of the log, where is written about this kick


So I checked. Most of the commands are detected and prevented by anticheat code 4 (anti-tp in vehicle).
The only one command that didn't work for me is "/TB.KICK [id]"
TB.Kick teleports unoccupied vehicles. Got something for it tho.
Reply

Quote:
Originally Posted by OstGot
Посмотреть сообщение
Please provide a part of the log, where is written about this kick


So I checked. Most of the commands are detected and prevented by anticheat code 4 (anti-tp in vehicle).
The only one command that didn't work for me is "/TB.KICK [id]"
052 [08/02/2017 13:15:47] OnDialogResponse playerid The_Burbulinads dialogid 4000 inputtext [5]Tele prie maљinos
[08/02/2017 13:15:48] [Komanda][Ћaidėjas: Cristian_Tomescu] - /admin
[08/02/2017 13:15:48] inputtext 0
[08/02/2017 13:15:48] inputtext 9dmin 1
[08/02/2017 13:15:48] OnDialogResponse playerid Anti_Sex dialogid 404 inputtext 9dmin
[08/02/2017 13:15:50] inputtext 0
[08/02/2017 13:15:50] inputtext 99dmin 1
[08/02/2017 13:15:50] OnDialogResponse playerid Anti_Sex dialogid 69 inputtext 99dmin
[08/02/2017 13:15:50] 1
[08/02/2017 13:15:50] OnPlayerRequestSpawn ˙he_Girl
[08/02/2017 13:15:50] KraunamMasina
[08/02/2017 13:15:50] KraunamMasina2
[08/02/2017 13:15:50] KraunamMasina3
[08/02/2017 13:15:50] OnPlayerSpawn 0
[08/02/2017 13:15:50] Duoda pinigus 50000
[08/02/2017 13:15:50] Duoda pinigus ћaidejui Anti_Sex kiek 50000
[08/02/2017 13:15:50] Suformatavo laika
[08/02/2017 13:15:50] OnPlayerSpawn elpastas
[08/02/2017 13:15:52] inputtext 0
[08/02/2017 13:15:52] inputtext 817.2.24 13:15:50 1
[08/02/2017 13:15:52] OnDialogResponse playerid Anti_Sex dialogid 1 inputtext 817.2.24 13:15:50
[08/02/2017 13:15:53] [Simg-AC debug] ID 5 panaudojo NOP RemovePlayerFromVehicle
[08/02/2017 13:15:53] [Nex-AC debug] Vehicleid: 394
[08/02/2017 13:15:53] [Simg-AC] Įtarimas ID 5. Prieћasties kodas: 052 ( 8 )
[08/02/2017 13:15:53] Suformatavo laika
[08/02/2017 13:15:54] [connection] 88.118.208.24:65519 requests connection cookie.
[08/02/2017 13:15:55] 1000.000000
[08/02/2017 13:15:55] SavePlayerData
[08/02/2017 13:15:55] SavePlayerData money 37960 player The_Burbulinads
[08/02/2017 13:15:55] OnPlayerDisconnect
[08/02/2017 13:15:55] [part] The_Burbulinads has left the server (5:2)
Reply

pawno\include\nex-ac.inc(802) : warning 219: local variable "team" shadows a variable at a preceding level
pawno\include\nex-ac.inc(1621) : warning 219: local variable "team" shadows a variable at a preceding level
pawno\include\nex-ac.inc(3045) : warning 202: number of arguments does not match definition
pawno\include\nex-ac.inc(3059) : error 025: function heading differs from prototype
pawno\include\OPSP.inc(217) : warning 201: redefinition of constant/macro (symbol "SetPlayerHealth")
pawno\include\OPSP.inc(227) : warning 201: redefinition of constant/macro (symbol "SetPlayerArmour")
pawno\include\streamer.inc(491) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint")
pawno\include\streamer.inc(510) : warning 201: redefinition of constant/macro (symbol "OnPlayerLeaveRaceCheckpoint")

Includes how look
Код:
#include <a_samp>
#include <nex-ac>
#include <YSI\y_ini>
#include <zcmd>
#include <sscanf2>
#include <OPSP>
#include <foreach>
#include <streamer>
#include <TimeStampToDate>
Reply

Quote:
Originally Posted by henkas
Посмотреть сообщение
pawno\include\nex-ac.inc(802) : warning 219: local variable "team" shadows a variable at a preceding level
pawno\include\nex-ac.inc(1621) : warning 219: local variable "team" shadows a variable at a preceding level
pawno\include\nex-ac.inc(3045) : warning 202: number of arguments does not match definition
pawno\include\nex-ac.inc(3059) : error 025: function heading differs from prototype
pawno\include\OPSP.inc(217) : warning 201: redefinition of constant/macro (symbol "SetPlayerHealth")
pawno\include\OPSP.inc(227) : warning 201: redefinition of constant/macro (symbol "SetPlayerArmour")
pawno\include\streamer.inc(491) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint")
pawno\include\streamer.inc(510) : warning 201: redefinition of constant/macro (symbol "OnPlayerLeaveRaceCheckpoint")

Includes how look
Код:
#include <a_samp>
#include <nex-ac>
#include <YSI\y_ini>
#include <zcmd>
#include <sscanf2>
#include <OPSP>
#include <foreach>
#include <streamer>
#include <TimeStampToDate>
PHP код:
#include <a_samp>
#include <foreach>
#include <streamer>
#include <OPSP>
#include <nex-ac>
#include <YSI\y_ini>
#include <zcmd>
#include <sscanf2>
#include <TimeStampToDate> 
Reply

Quote:
Originally Posted by Sunehildeep
Посмотреть сообщение
PHP код:
#include <a_samp>
#include <foreach>
#include <streamer>
#include <OPSP>
#include <nex-ac>
#include <YSI\y_ini>
#include <zcmd>
#include <sscanf2>
#include <TimeStampToDate> 
Yea you fixed error from others includes bat now all error from nex-ac
pawno\include\nex-ac.inc(802) : warning 219: local variable "team" shadows a variable at a preceding level
pawno\include\nex-ac.inc(1621) : warning 219: local variable "team" shadows a variable at a preceding level
pawno\include\nex-ac.inc(1994) : warning 201: redefinition of constant/macro (symbol "SetPlayerHealth")
pawno\include\nex-ac.inc(2011) : warning 201: redefinition of constant/macro (symbol "SetPlayerArmour")
pawno\include\nex-ac.inc(2761) : error 021: symbol already defined: "@yH_OnPlayerConnect@001"
pawno\include\nex-ac.inc(2765) : error 021: symbol already defined: "@yH_OnPlayerConnect@001"
pawno\include\nex-ac.inc(2866) : error 021: symbol already defined: "@yH_OnPlayerDisconnect@001"
pawno\include\nex-ac.inc(2870) : error 021: symbol already defined: "@yH_OnPlayerDisconnect@001"
Reply

Quote:
Originally Posted by henkas
Посмотреть сообщение
Yea you fixed error from others includes bat now all error from nex-ac
pawno\include\nex-ac.inc(802) : warning 219: local variable "team" shadows a variable at a preceding level
pawno\include\nex-ac.inc(1621) : warning 219: local variable "team" shadows a variable at a preceding level
Don't create global variables with trivial names, which can easily match with other. As for errors in anticheat: try to create "playerid" variable before connecting some includes and... bingo! You will see how many errors in each of your include

Quote:
Originally Posted by henkas
Посмотреть сообщение
pawno\include\nex-ac.inc(1994) : warning 201: redefinition of constant/macro (symbol "SetPlayerHealth")
pawno\include\nex-ac.inc(2011) : warning 201: redefinition of constant/macro (symbol "SetPlayerArmour")
Somewhere in your code or in some include you have 'hook method' which implemented isn't properly.
Find in code something like:
PHP код:
#define SetPlayerHealth my_SetPlayerHealth // Tag 'my_' may be different 
and replace to:
PHP код:
#if defined _ALS_SetPlayerHealth
    #undef SetPlayerHealth
#else
    #define _ALS_SetPlayerHealth
#endif
#define SetPlayerHealth my_SetPlayerHealth // So change tag 'my_' on your tag again 
...Do the same for SetPlayerArmour

Quote:
Originally Posted by henkas
Посмотреть сообщение
pawno\include\nex-ac.inc(2761) : error 021: symbol already defined: "@yH_OnPlayerConnect@001"
pawno\include\nex-ac.inc(2765) : error 021: symbol already defined: "@yH_OnPlayerConnect@001"
pawno\include\nex-ac.inc(2866) : error 021: symbol already defined: "@yH_OnPlayerDisconnect@001"
pawno\include\nex-ac.inc(2870) : error 021: symbol already defined: "@yH_OnPlayerDisconnect@001"
Try to use y_hooks (also including before the anticheat), as you're already using YSI
Reply

Quote:
Originally Posted by OstGot
Посмотреть сообщение
Don't create global variables with trivial names, which can easily match with other. As for errors in anticheat: try to create "playerid" variable before connecting some includes and... bingo! You will see how many errors in each of your include


Somewhere in your code or in some include you have 'hook method' which implemented isn't properly.
Find in code something like:
PHP код:
#define SetPlayerHealth my_SetPlayerHealth // Tag 'my_' may be different 
and replace to:
PHP код:
#if defined _ALS_SetPlayerHealth
    #undef SetPlayerHealth
#else
    #define _ALS_SetPlayerHealth
#endif
#define SetPlayerHealth my_SetPlayerHealth // So change tag 'my_' on your tag again 
...Do the same for SetPlayerArmour


Try to use y_hooks (also including before the anticheat), as you're already using YSI
Ok thanks i do everything how you told and zero errors and warnings. I will test it how does it work.
Reply

Well i test it and every player get kick by this reason.
Reply

P.S and cheat programs (#039). if its important its team deathmatch style server.
Reply

Quote:
Originally Posted by henkas
Посмотреть сообщение
P.S and cheat programs (#039). if its important its team deathmatch style server.
Important for me only description of a specific situation when it happened and some parts of the log when player was kicked
Reply

http://www.simg.lt/er/buynewcarerror052.avi with this video reason 052. Player was buyed car and after she sit in the car.
[08/02/2017 13:15:53] [Simg-AC debug] ID 5 panaudojo NOP RemovePlayerFromVehicle
[08/02/2017 13:15:53] [Nex-AC debug] Vehicleid: 394
[08/02/2017 13:15:53] [Simg-AC] Įtarimas ID 5. Priežasties kodas: 052 ( 8 )
Reply

Quote:
Originally Posted by Dutheil
Посмотреть сообщение
FlyHack Vehicle is detected when any player is in a bicycle (per example) and he climbs a mountain with a steep slope.
Set as a punishment for this anti-cheat to send warnings for admins (who online)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)