Advertisement
Guest User

Untitled

a guest
Jun 27th, 2016
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. new AcNames[][] =
  2. {
  3. "Anti-AirBreak (onfoot)",
  4. "Anti-AirBreak (in vehicle)",
  5. "Anti-teleport hack (onfoot)",
  6. "Anti-teleport hack (in vehicle)",
  7. "Anti-teleport hack (into/between vehicles)",
  8. "Anti-teleport hack (vehicle to player)",
  9. "Anti-teleport hack (pickups)",
  10. "Anti-FlyHack (onfoot)",
  11. "Anti-FlyHack (in vehicle)",
  12. "Anti-SpeedHack (onfoot)",
  13. "Anti-SpeedHack (in vehicle)",
  14. "Anti-Health hack (in vehicle)",
  15. "Anti-Health hack (onfoot)",
  16. "Anti-Armour hack",
  17. "Anti-Money hack",
  18. "Anti-Weapon hack",
  19. "Anti-Ammo hack (add)",
  20. "Anti-Ammo hack (infinite)",
  21. "Anti-Special actions hack",
  22. "Anti-GodMode from bullets (onfoot)",
  23. "Anti-GodMode from bullets (in vehicle)",
  24. "Anti-Invisible hack",
  25. "Anti-lagcomp-spoof",
  26. "Anti-Tuning hack",
  27. "Anti-Parkour mod",
  28. "Anti-Quick turn",
  29. "Anti-Rapid fire",
  30. "Anti-FakeSpawn",
  31. "Anti-FakeKill",
  32. "Anti-Pro Aim",
  33. "Anti-CJ run",
  34. "Anti-CarShot",
  35. "Anti-CarJack",
  36. "Anti-UnFreeze",
  37. "Anti-AFK Ghost",
  38. "Anti-Full Aiming",
  39.  
  40. "Anti-Fake NPC",
  41. "Anti-Reconnect",
  42. "Anti-High ping",
  43. "nti-Dialog hack",
  44. "Protection from the sandbox",
  45. "Protection against an invalid version",
  46. "Anti-Rcon hack",
  47.  
  48. "Anti-Tuning crasher",
  49. "Anti-Invalid seat crasher",
  50. "Anti-Dialog crasher",
  51. "Anti-Attached object crasher",
  52. "Anti-Weapon Crasher",
  53.  
  54. "Flood protection connects to one slot",
  55. "Anti-flood callback functions",
  56. "Anti-flood change seat",
  57.  
  58. "Anti-Ddos",
  59.  
  60. "Anti-NOP's",
  61. };
  62.  
  63. forward OnCheatDetected(playerid, ip_address[], type, code);
  64. public OnCheatDetected(playerid, ip_address[], type, code)
  65. {
  66. if(type) BlockIpAddress(ip_address, 0);
  67. else
  68. {
  69. switch(code)
  70. {
  71. case 5: return 1; //Важно!
  72. case 32: return ClearAnimations(playerid, 1); //Важно!
  73. case 40: SendClientMessage(playerid, -1, MAX_CONNECTS_MSG);
  74. case 41: SendClientMessage(playerid, -1, UNKNOWN_CLIENT_MSG);
  75. default:
  76. {
  77. static ac_strtmp[145];
  78. format(ac_strtmp, sizeof ac_strtmp, "Вы были кикнуты по подозрению в читерстве (%s)", AcNames[code]);
  79. SendClientMessage(playerid, -1, ac_strtmp);
  80. }
  81. }
  82. new ac_pping = GetPlayerPing(playerid) + 150;
  83. SetTimerEx("ac_KickTimer", (ac_pping > 500 ? 500 : ac_pping), false, "i", playerid);
  84. }
  85. return 1;
  86. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement