*Daim*
Умник
Приступим,
Ко всем new :
Создаем каллбек или юзаем уже существующий :
Все, античит готов) Всем добра от "+" не откажусь.
Источник : C-M
Ко всем new :
PHP:
enum AC_STRUCT_INFO
{
Float:LastOnFootPosition[3],
checkmaptp,
maptplastclick,
Float:maptp[3]
}
new acstruct[MAX_PLAYERS][AC_STRUCT_INFO];
PHP:
if(acstruct[playerid][checkmaptp] == 1)
{
new Float:dis = GetPlayerDistanceFromPoint(playerid, acstruct[playerid][maptp][0], acstruct[playerid][maptp][1], acstruct[playerid][maptp][2]);
if(dis < 5.0)
{
new Float:disd = GetPlayerDistanceFromPoint(playerid, acstruct[playerid][LastOnFootPosition][0], acstruct[playerid][LastOnFootPosition][1], acstruct[playerid][LastOnFootPosition][2]);
if(disd > 25.0)
{
SendClientMessage(playerid, COLOR_RED, "Вы были кикнуты по подозрению в читерстве! (#0111)");
Kick(playerid);
}
}
acstruct[playerid][checkmaptp] = 0;
}
Источник : C-M
Последнее редактирование:
