Brendan1
Умник
Доброго времени суток, форумчане.
Вот выкладываю античит на AIM.
И так приступим!
Ко всем макросам, добавим:
После в стандартный калбек public OnPlayerGiveDamage, добавим:
Ну и последнее в конец мода, добавим:
Вот и всё, античит готов! Всем спасибо!
Пользуйтесь и ставьте - Спасибо!
Вот выкладываю античит на AIM.
И так приступим!
Ко всем макросам, добавим:
PHP:
#define MAX_AIM_TICKS 3
PHP:
if(damagedid == INVALID_PLAYER_ID || !CheckFireArm(GetPlayerWeapon(playerid)) || GetPlayerTargetPlayer(playerid) != INVALID_PLAYER_ID) return 1;
new count = GetPVarInt(playerid, "aimcount"), ticks = GetPVarInt(playerid, "aimtick"), currtick = GetTickCount();
if(currtick - ticks <= 10000 && count + 1 >= MAX_AIM_TICKS)
{
new msg[144], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
format(msg, 144, "[Anti-Cheat]: %s [ID: %i] был кикнут за использование Aim. (#Aim-Detect)", name, playerid);
SendClientMessageToAll(-1, msg);
Kick(playerid);
}
else if(currtick - ticks > 10000)
{
DeletePVar(playerid, "aimcount");
DeletePVar(playerid, "aimtick");
count = 0;
currtick = GetTickCount();
}
SetPVarInt(playerid, "aimcount", count + 1);
SetPVarInt(playerid, "aimtick", currtick);
PHP:
CheckFireArm(weaponid)
{
switch(weaponid)
{
case 16..39, 41..43: return 1;
default: return 0;
}
return 0;
}
Пользуйтесь и ставьте - Спасибо!
