SA-MP Forums Archive
Anti Weapon HAck - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Anti Weapon HAck (/showthread.php?tid=519416)



Anti Weapon HAck - M0HAMMAD - 14.06.2014

Hi All
I Need A Anti Weapon Hack For Sobit
All anti Weapon Hacks Kick Player because in server, player buy weapon form weapon shop and the anti cheat think player use weapon hack
i Need A Anti Weapon Hack For Sobit


Re: Anti Weapon HAck - Threshold - 14.06.2014

http://forum.sa-mp.com/search.php?searchid=8272284


Re: Anti Weapon HAck - [WSF]ThA_Devil - 14.06.2014

Quote:
Originally Posted by M0HAMMAD
Посмотреть сообщение
Hi All
I Need A Anti Weapon Hack For Sobit
All anti Weapon Hacks Kick Player because in server, player buy weapon form weapon shop and the anti cheat think player use weapon hack
i Need A Anti Weapon Hack For Sobit
In your case, I'd suggest blocking default weapon shops anyway. But if you want to make it not ban people in weapon shops, do following:
When cheat is detected, check if player is in range of seller, and is in interior. That would allow a little bit of cheat, but better than nothing.


Re: Anti Weapon HAck - Rittik - 14.06.2014

If you want to kick/ban the players ,who uses minigun/rocketlauncher.

pawn Код:
public OnPlayerUpdate(playerid)
{
    for(new i=0;i<MAX_PLAYERS;i++)
       {
         if(IsPlayerConnected(i))
          {
            if(GetPlayerWeapon(i) == 38||GetPlayerWeapon(i) == 35) //"38" is for minigun and "35" is for rocket launcher (RPG)
             {
               Kick(i);
             }
           }
        }
    return 1;
}