В public OnPlayerUpdate(playerid)
Код
// На джетпак
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK)
{
PlayerInfo[playerid][pWarns] += 1;
if(PlayerInfo[playerid][pWarns] >= 3)
{
format(string, sizeof(string), "[Античит]: %s был забанен за использование читов [3 предупреждения]",Name(playerid));
SendClientMessageToAll(COLOR_LIGHTRED, string);
PlayerInfo[playerid][pMember] = 0;
PlayerInfo[playerid][pLeader] = 0;
PlayerInfo[playerid][pBan] = 1;
Kick(playerid);
}
else
{
format(string,sizeof(string), "[Античит]: %s получил Warn за использование читов",Name(playerid));
SendClientMessageToAll(COLOR_LIGHTRED, string);
PlayerInfo[playerid][pMember] = 0;
PlayerInfo[playerid][pLeader] = 0;
OnPlayerUpdateAc(playerid);
Kick(playerid);
}
}
// Запретные ганы
new gun = GetPlayerWeapon(playerid);
if(gun == 9 || gun == 16 || gun == 17 || gun == 35 || gun == 36 || gun == 37 || gun == 38 || gun == 39)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Вы были кикнуты по подозрению в читерстве. {FFA500}(#555)");
DelGun(playerid);
OnPlayerUpdateAc(playerid);
Kick(playerid);
}