forward OnCheatDetected(playerid, ip_address[], type, code);
public OnCheatDetected(playerid, ip_address[], type, code)
{
if(type) BlockIpAddress(ip_address, 0);
else
{
switch(code)
{
case 5: return 1;
case 14:
{
new a = AntiCheatGetMoney(playerid);
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, a);
}
case 32: return ClearAnimations(playerid, 1);
case 40: SendClientMessage(playerid, -1, MAX_CONNECTS_MSG);
case 41: SendClientMessage(playerid, -1, UNKNOWN_CLIENT_MSG);
default:
{
//Or warning to admins
static ac_strtmp[sizeof KICK_MSG];
format(ac_strtmp, sizeof ac_strtmp, KICK_MSG, code);
SendClientMessage(playerid, -1, ac_strtmp);
}
}
//Or warning to admins
new ac_pping = GetPlayerPing(playerid) + 150;
SetTimerEx("ac_KickTimer", (ac_pping > 500 ? 500 : ac_pping), false, "i", playerid);
}
return 1;
}
|
Posible fix: With the mod sob if active weapons and for example you take a gun and can not be removed from OnCheatDetected, the player can continue using it. Is there any way to remove? Since does not effect RemovePlayerWeapon...
|
|
---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3.7, ©2005-2015 SA-MP Team [17:14:43] mapname = "San Andreas" (string) [17:14:43] language = "" (string) [17:14:43] [17:14:43] Server Plugins [17:14:43] -------------- [17:14:43] Loading plugin: crashdetect.so [17:14:43] CrashDetect v4.15.1 is OK. [17:14:43] Loaded. [17:14:43] Loaded 1 plugins. [17:14:43] [17:14:43] Ban list [17:14:43] -------- [17:14:43] Loaded: samp.ban [17:14:43] [17:14:43] [17:14:43] Filterscripts [17:14:43] --------------- [17:14:43] Loaded 0 filterscripts. [17:14:44] [debug] Run time error 19: "File or function is not found" [17:14:44] [debug] GetConsoleVarAsBool [17:14:44] [debug] GetConsoleVarAsInt [17:14:44] [debug] GetConsoleVarAsString [17:14:44] [debug] Run time error 19: "File or function is not found" [17:14:44] [debug] GetConsoleVarAsBool [17:14:44] [debug] GetConsoleVarAsInt [17:14:44] [debug] GetConsoleVarAsString [17:14:44] Script[gamemodes/asd.amx]: Run time error 19: "File or function is not found" [17:14:44] Number of vehicle models: 0 |
SA-MP\pawno\include\nex-ac.inc(2042) : warning 201: redefinition of constant/macro (symbol "SetPlayerHealth") SA-MP\pawno\include\nex-ac.inc(2062) : warning 201: redefinition of constant/macro (symbol "SetPlayerArmour") SA-MP\pawno\include\nex-ac.inc(3156) : warning 202: number of arguments does not match definition SA-MP\pawno\include\nex-ac.inc(3170) : error 025: function heading differs from prototype SA-MP\pawno\include\nex-ac.inc(3214) : error 021: symbol already defined: "OnDialogResponse"
IsAntiCheatEnabledForPlayer(playerid, acid)

|
nex_ac.inc(5665) : warning 202: number of arguments does not match definition
nex_ac.inc(5679) : error 025: function heading differs from prototype |
|
Код:
C:\Users\Gabriel\Desktop\borrar\pawno\include\nex-ac.inc(3113) : warning 202: number of arguments does not match definition C:\Users\Gabriel\Desktop\borrar\pawno\include\nex-ac.inc(3127) : error 025: function heading differs from prototype C:\Users\Gabriel\Desktop\borrar\pawno\include\nex-ac.inc(6401) : warning 202: number of arguments does not match definition C:\Users\Gabriel\Desktop\borrar\pawno\include\nex-ac.inc(6401) : warning 202: number of arguments does not match definition C:\Users\Gabriel\Desktop\borrar\pawno\include\nex-ac.inc(6401) : warning 202: number of arguments does not match definition C:\Users\Gabriel\Desktop\borrar\pawno\include\nex-ac.inc(6401) : warning 202: number of arguments does not match definition C:\Users\Gabriel\Desktop\borrar\pawno\include\nex-ac.inc(6401) : warning 202: number of arguments does not match definition C:\Users\Gabriel\Desktop\borrar\pawno\include\nex-ac.inc(6401) : warning 202: number of arguments does not match definition C:\Users\Gabriel\Desktop\borrar\pawno\include\nex-ac.inc(6422) : error 025: function heading differs from prototype |
|
Код:
C:\Users\Gabriel\Desktop\borrar\pawno\include\YSI\y_hooks/impl.inc(1265) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint") C:\Users\Gabriel\Desktop\borrar\pawno\include\YSI\y_hooks/impl.inc(1308) : warning 201: redefinition of constant/macro (symbol "OnPlayerLeaveRaceCheckpoint") C:\Users\Gabriel\Desktop\borrar\pawno\include\YSI\y_hooks/impl.inc(1752) : warning 201: redefinition of constant/macro (symbol "OnVehicleDamageStatusUpdate") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors. |
|
You should work on the false-positives after players spawn, it's killing this AC.
|
|
Check OnPlayerLeaveCheckpoint public and his arguments in your script (must be "public OnPlayerLeaveCheckpoint(playerid)"). If it doesn't help - update the server version |