Advertisement
N1E7R4V

AC

Apr 13th, 2015
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.48 KB | None | 0 0
  1. -- ДОБАВИТЬ В НАЧАЛО:
  2. require "Anty-Cheat/require"
  3. local AC = {};
  4.  
  5. -- ДОБАВИТЬ В ФУНКЦИИ:
  6. function BE_OnPlayerDeath(playerid, p_classid, killerid, k_classid)
  7.  if killerid ~= -1 and GetTickCount() - AC[killerid] <= 50 then
  8.                 LogString("CHEATERS", GetPlayerName(killerid).." use XKILL.exe: ");
  9.                 local PORN = CreateSound("PORN.WAV");
  10.                 PlayPlayerSound(killerid,PORN);
  11.                 Ban(killerid);
  12.         end
  13.  -------------
  14. function OnPlayerDisconnect(playerid, reason)
  15.     AC[playerid] = 0;
  16. end
  17.  ----------------
  18. function OnPlayerFocus(playerid, focusid)
  19.         if focusid ~= -1 then
  20.             AC[playerid] = GetTickCount();
  21.         end
  22. end
  23.  
  24. -- УДАЛИТЬ НАХУЙ ВСЮ ФУНКЦИЮ: OnPlayerUseCheats
  25.  
  26. --Вместо нее запилить:
  27. function OnPlayerCheats(playerid, block, oldVALUE, newVALUE)
  28.     local instance = GetPlayerInstance(playerid);
  29.     if instance == "PC_HERO" then
  30.         --if coefficient ~= "gold" then
  31.         for i = 0, MAX_PLAYERS - 1 do
  32.         if Player[i].admin == 444 or Player[i].admin == 333 or Player[i].admin == 222 or Player[i].admin == 111 then
  33. SendPlayerMessage(i,50,50,225,string.format("%s %s %s","(ANTI-CHEAT):",GetPlayerName(playerid),"возможно использует читы "..block.. " " ..oldVALUE.. " -> " ..newVALUE));        
  34.             end
  35.             end
  36.     LogString("CHEATERS", GetPlayerName(playerid).." block: "..block.. " " ..oldVALUE.. " -> " ..newVALUE);
  37.     --Ban(playerid);
  38.         --end
  39.         end
  40. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement