[Include] Nex-AC - Anticheat system

Hungarian(Magyar) language: http://pastebin.com/quCTLESf
Reply

Why do I on my server, it kicked people with no reason.Such as, after killing a player....
Reply

i receive this warning, what i must to do ?
Quote:

mSelection.inc(589) : warning 201: redefinition of constant/macro (symbol "OnPlayerClickPlayerTextDraw");

i don`t know who work that y_hooks and ALS.
Reply

I find a bug, when i restart server with gmx kicking me for reason invisible hack.
Reply

New Version v1.8
Changes:
Improved Anti-RapidFire: now detects Auto +C
Minor optimization

Fixes:
Fixed some anticheats which didn't worked properly
Increased the maximum allowable onfoot speed
Fixed a bug in Anti-Invalid seat crasher
Fixed Anti-Weapon and Ammo hack

Download: See the first post
Reply

Some bug with reason 015

public OnPlayerRequestSpawn(playerid)
{
mysql_format(sqldb, query, sizeof(query), "SELECT * FROM accounts WHERE accname = '%e' LIMIT 0,1", GetName(playerid));
mysql_tquery(sqldb, query, "duodamginklus", "i", playerid);
return 1;
}
PUBLIC: duodamginklus(playerid)
{
new rows = mysql_num_rows();
if(rows)
{
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g1"),cache_get_field_content_int(0, "a1"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g2"),cache_get_field_content_int(0, "a2"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g3"),cache_get_field_content_int(0, "a3"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g4"),cache_get_field_content_int(0, "a4"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g5"),cache_get_field_content_int(0, "a5"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g6"),cache_get_field_content_int(0, "a6"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g7"),cache_get_field_content_int(0, "a7"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g8"),cache_get_field_content_int(0, "a8"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g9"),cache_get_field_content_int(0, "a9"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g10"),cache_get_field_content_int(0, "a10"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g11"),cache_get_field_content_int(0, "a11"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g12"),cache_get_field_content_int(0, "a12"));

}
return 1;
}
Reply

EDIT : Fixed my problem
Reply

Quote:
Originally Posted by Irenijus
Посмотреть сообщение
Some bug with reason 015
Maybe you should try to swap mysql and nex-ac includes?
Reply

Quote:
Originally Posted by OstGot
Посмотреть сообщение
Maybe you should try to swap mysql and nex-ac includes?
if i swap include <a_mysql> problem doesn't disapear ?

First
#include <nex-ac.inc>
#include <streamer>
#include <mSelection>
#include <a_mysql>
#include <ForEachPlayer>
#include <zcmd>
//
#include <!COO!>
#include <sscanf2>
#include <mailer>
#include <crashdetect>

Second

#include <a_mysql>
#include <nex-ac.inc>
#include <streamer>
#include <mSelection>
#include <ForEachPlayer>
#include <zcmd>
//
#include <!COO!>
#include <sscanf2>
#include <mailer>
#include <crashdetect>
Reply

About Anti-NOP.THere are some questions.When I quickly get on transport and Get off,again and again.The anti-cheating will kicked me out,reason <#052>.Why?
Reply

PHP код:
C:\Samp-Server 0.3.7\pawno\include\nex-ac.inc(3887) : warning 202number of arguments does not match definition
C
:\Samp-Server 0.3.7\pawno\include\nex-ac.inc(3901) : error 025: function heading differs from prototype
C
:\Samp-Server 0.3.7\pawno\include\mSelection.inc(589) : warning 201redefinition of constant/macro (symbol "OnPlayerClickPlayerTextDraw")
C:\Samp-Server 0.3.7\pawno\include\vehicleplus.inc(1761) : warning 201redefinition of constant/macro (symbol "OnVehicleDamageStatusUpdate"
Reply

Quote:
Originally Posted by N3cromancer
Посмотреть сообщение
PHP код:
C:\Samp-Server 0.3.7\pawno\include\nex-ac.inc(3887) : warning 202number of arguments does not match definition
C
:\Samp-Server 0.3.7\pawno\include\nex-ac.inc(3901) : error 025: function heading differs from prototype 
public OnPlayerRequestClass should look like this (in your GameMode):
pawn Код:
public OnPlayerRequestClass(playerid, classid)
Quote:
Originally Posted by N3cromancer
Посмотреть сообщение
PHP код:
C:\Samp-Server 0.3.7\pawno\include\mSelection.inc(589) : warning 201redefinition of constant/macro (symbol "OnPlayerClickPlayerTextDraw")
C:\Samp-Server 0.3.7\pawno\include\vehicleplus.inc(1761) : warning 201redefinition of constant/macro (symbol "OnVehicleDamageStatusUpdate"
Try to include mSelection.inc and vehicleplus.inc before nex-ac.inc
Reply

My errors

Код:
nex-ac.inc(962) : error 017: undefined symbol "GetPlayerPoolSize"
nex-ac.inc(1308) : warning 202: number of arguments does not match definition
nex-ac.inc(1306) : warning 203: symbol is never used: "addsiren"
nex-ac.inc(1322) : warning 202: number of arguments does not match definition
nex-ac.inc(1320) : warning 203: symbol is never used: "addsiren"
nex-ac.inc(1932) : error 017: undefined symbol "GetConsoleVarAsBool"
nex-ac.inc(1935) : error 017: undefined symbol "GetConsoleVarAsInt"
nex-ac.inc(1949) : error 017: undefined symbol "GetConsoleVarAsString"
nex-ac.inc(1949) : warning 202: number of arguments does not match definition
nex-ac.inc(2041) : error 017: undefined symbol "GetPlayerPoolSize"
nex-ac.inc(2119) : error 017: undefined symbol "BlockIpAddress"
nex-ac.inc(2283) : warning 202: number of arguments does not match definition
nex-ac.inc(2297) : error 025: function heading differs from prototype
nex-ac.inc(5078) : warning 235: public function lacks forward declaration (symbol "OnVehicleSirenStateChange")
nex-ac.inc(5187) : error 025: function heading differs from prototype
nex-ac.inc(5468) : error 017: undefined symbol "BlockIpAddress"
mSelection.inc(589) : warning 201: redefinition of constant/macro (symbol "OnPlayerClickPlayerTextDraw"
Reply

Quote:
Originally Posted by OstGot
Посмотреть сообщение
public OnPlayerRequestClass should look like this (in your GameMode):
pawn Код:
public OnPlayerRequestClass(playerid, classid)

Try to include mSelection.inc and vehicleplus.inc before nex-ac.inc
Was error caused by me xD, thanks for your support and for this great Include.
Reply

New Version v1.8.1
Changes:
Rewrote the Anti-Dialog crasher (%)

Fixes:
Fixed a bug in Anti-Ammo hack with a kick for a detonator
Fixed debug mode

Special thanks to user PatchwerkQWER and everyone who participated in the development of the project!

Download: See the first post
Reply

Wtf kick with reason "[Nex-AC] Suspicion on the ID 0. Reason code: 015 (1)"

my code please help ??

public OnPlayerRequestSpawn(playerid)
{
mysql_format(sqldb, query, sizeof(query), "SELECT * FROM accounts WHERE accname = '%e' LIMIT 0,1", GetName(playerid));
mysql_tquery(sqldb, query, "givegun", "i", playerid);
return 1;
}
PUBLIC: givegun(playerid)
{
new rows = mysql_num_rows();
if(rows)
{
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g1"),cache_get_field_content_int(0, "a1"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g2"),cache_get_field_content_int(0, "a2"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g3"),cache_get_field_content_int(0, "a3"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g4"),cache_get_field_content_int(0, "a4"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g5"),cache_get_field_content_int(0, "a5"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g6"),cache_get_field_content_int(0, "a6"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g7"),cache_get_field_content_int(0, "a7"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g8"),cache_get_field_content_int(0, "a8"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g9"),cache_get_field_content_int(0, "a9"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g10"),cache_get_field_content_int(0, "a10"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g11"),cache_get_field_content_int(0, "a11"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g12"),cache_get_field_content_int(0, "a12"));

}
return 1;
}
Reply

Hi, how to solve these errors ?
Код:
D:\FICHIER SYSTEME\SERVEUR\pawno\include\nex-ac.inc(3793) : warning 201: redefinition of constant/macro (symbol "OnPlayerPickUpDynamicPickup")
D:\FICHIER SYSTEME\SERVEUR\pawno\include\nex-ac.inc(5191) : error 025: function heading differs from prototype
My includes :
PHP код:
#include <a_samp>
#include <sscanf2>
#include <streamer>
#include <blaze>
#include <zcmd>
#include <FCNPC>
#include <YSI\y_timers>
#include <nex-ac> 
Reply

Man.............About Anti-NOP.THere are some questions.When I quickly get on transport and Get off,again and again.The anti-cheating will kicked me out,reason <#052>.Why?
Reply

Your anticheat is so bugged, when i'm connect i'm kicked with reason "suspicion cheat".
Reply

im scared to use this , i dont want to auto ban/kick my players without any reason
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)