17.09.2016, 17:48
(
Последний раз редактировалось OstGot; 10.06.2018 в 11:25.
)
You most likely are using OnCheatDetected in your gm, so
Perhaps the player uses NOPs (ignore server actions)?
Код:
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;
}


