Advertisement
Guest User

Untitled

a guest
Dec 4th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.03 KB | None | 0 0
  1. AC_WeaponHack(playerid)
  2. {
  3.     if(AC_SafeWeapon[playerid] == false)
  4.     {
  5.         if(Player[playerid][Spawned])
  6.         {
  7.             if(GetPlayerWeapon(playerid) != 0)
  8.             {
  9.                 static weaponid;
  10.                 weaponid = GetPlayerWeapon(playerid);
  11.                
  12.                 if(weaponid != 46)
  13.                 {
  14.                     if(!haveWeaponEquipped(playerid, weaponid))
  15.                     {
  16.                         Player[playerid][AntiWeaponHackWarnings]++;
  17.                         if(Player[playerid][AntiWeaponHackWarnings] >= 4)
  18.                         {
  19.                             /*static reason[60], days;
  20.                             format(reason, sizeof(reason), "Weapon-Hack");
  21.                             days = 30;
  22.                            
  23.                             SendClientMessageToAllEx(COLOR_LIGHTRED, "[AntiCheat]: %s foi banido por %d dias pela suspeita de %s.", Player[playerid][Name], days, reason);     
  24.                             BOT_setPlayerBan(playerid, reason, days);*/
  25.                            
  26.                             SendClientMessageToAllEx(COLOR_LIGHTRED, "[AntiCheat]: %s foi kickado pela suspeita de Weapon-Hack.", Player[playerid][Name])
  27.                             KickEx(playerid);
  28.                         }
  29.                     }
  30.                     else Player[playerid][AntiWeaponHackWarnings] = 0;
  31.                 }
  32.             }
  33.         }
  34.     }  
  35.     AC_SafeWeapon[playerid] = false;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement