Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new AcNames[][] =
- {
- "Anti-AirBreak (onfoot)",
- "Anti-AirBreak (in vehicle)",
- "Anti-teleport hack (onfoot)",
- "Anti-teleport hack (in vehicle)",
- "Anti-teleport hack (into/between vehicles)",
- "Anti-teleport hack (vehicle to player)",
- "Anti-teleport hack (pickups)",
- "Anti-FlyHack (onfoot)",
- "Anti-FlyHack (in vehicle)",
- "Anti-SpeedHack (onfoot)",
- "Anti-SpeedHack (in vehicle)",
- "Anti-Health hack (in vehicle)",
- "Anti-Health hack (onfoot)",
- "Anti-Armour hack",
- "Anti-Money hack",
- "Anti-Weapon hack",
- "Anti-Ammo hack (add)",
- "Anti-Ammo hack (infinite)",
- "Anti-Special actions hack",
- "Anti-GodMode from bullets (onfoot)",
- "Anti-GodMode from bullets (in vehicle)",
- "Anti-Invisible hack",
- "Anti-lagcomp-spoof",
- "Anti-Tuning hack",
- "Anti-Parkour mod",
- "Anti-Quick turn",
- "Anti-Rapid fire",
- "Anti-FakeSpawn",
- "Anti-FakeKill",
- "Anti-Pro Aim",
- "Anti-CJ run",
- "Anti-CarShot",
- "Anti-CarJack",
- "Anti-UnFreeze",
- "Anti-AFK Ghost",
- "Anti-Full Aiming",
- "Anti-Fake NPC",
- "Anti-Reconnect",
- "Anti-High ping",
- "nti-Dialog hack",
- "Protection from the sandbox",
- "Protection against an invalid version",
- "Anti-Rcon hack",
- "Anti-Tuning crasher",
- "Anti-Invalid seat crasher",
- "Anti-Dialog crasher",
- "Anti-Attached object crasher",
- "Anti-Weapon Crasher",
- "Flood protection connects to one slot",
- "Anti-flood callback functions",
- "Anti-flood change seat",
- "Anti-Ddos",
- "Anti-NOP's",
- };
- 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 32: return ClearAnimations(playerid, 1); //Важно!
- case 40: SendClientMessage(playerid, -1, MAX_CONNECTS_MSG);
- case 41: SendClientMessage(playerid, -1, UNKNOWN_CLIENT_MSG);
- default:
- {
- static ac_strtmp[145];
- format(ac_strtmp, sizeof ac_strtmp, "Вы были кикнуты по подозрению в читерстве (%s)", AcNames[code]);
- SendClientMessage(playerid, -1, ac_strtmp);
- }
- }
- new ac_pping = GetPlayerPing(playerid) + 150;
- SetTimerEx("ac_KickTimer", (ac_pping > 500 ? 500 : ac_pping), false, "i", playerid);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement