SA-MP Forums Archive
Problem with anti weapon cheat from ****** - 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: Problem with anti weapon cheat from ****** (/showthread.php?tid=608743)



Problem with anti weapon cheat from ****** - justjamie - 04.06.2016

Hello,
I got a anti weapon cheat from ******, but everytime i fire 1 bullet, it also bans me.
I use this:
http://pastebin.com/eWcy4Gh3

How to fix?


Re: Problem with anti weapon cheat from ****** - MBilal - 04.06.2016

This script is just long but some flaws when you shot you will be kicked.
because ammo is not updating in this script.
Don't use that script.

Well as Example

Check this Link http://forum.sa-mp.com/showpost.php?...3&postcount=10


Re: Problem with anti weapon cheat from ****** - justjamie - 04.06.2016

Quote:
Originally Posted by MBilal
Посмотреть сообщение
This script is just long but some flaws when you shot you will be kicked.
because ammo is not updating in this script.
Don't use that script.

Well as Example

Check this Link http://forum.sa-mp.com/showpost.php?...3&postcount=10
ammo is updating.
PHP код:
public OnPlayerWeaponShot(playeridweaponidhittypehitidFloat:fXFloat:fYFloat:fZ)
{
        if(
weaponid == 16)
        {
           
pGrenade[playerid] -= 1;
        }
        if(
weaponid == 17)
        {
           
pTearGas[playerid] -= 1;
        }
        if(
weaponid == 18)
        {
           
pMolotov[playerid] -= 1;
        }
        if(
weaponid == 22)
        {
           
p9mm[playerid] -= 1;
        }
        if(
weaponid == 23)
        {
           
pSlienced9mm[playerid] -= 1;
        }
        if(
weaponid == 24)
        {
           
pEagle[playerid] -= 1;
        }
        if(
weaponid == 25)
        {
           
pShotgun[playerid] -= 1;
        }
        if(
weaponid == 26)
        {
           
pSawnoff[playerid] -= 1;
        }
        if(
weaponid == 27)
        {
           
pCombatShotgun[playerid] -= 1;
        }
        if(
weaponid == 28)
        {
           
pUzi[playerid] -= 1;
        }
        if(
weaponid == 29)
        {
           
pMp5[playerid] -= 1;
        }
        if(
weaponid == 30)
        {
           
pAk[playerid] -= 1;
        }
        if(
weaponid == 31)
        {
           
pM4[playerid] -= 1;
        }
        if(
weaponid == 32)
        {
           
pTec9[playerid] -= 1;
        }
        if(
weaponid == 33)
        {
           
pRifle[playerid] -= 1;
        }
        if(
weaponid == 34)
        {
           
pSniper[playerid] -= 1;
        }
        if(
weaponid == 35)
        {
           
pRpg[playerid] -= 1;
        }
        if(
weaponid == 36)
        {
           
pRocket[playerid] -= 1;
        }
        if(
weaponid == 37)
        {
           
pFlame[playerid] -= 1;
        }
        if(
weaponid == 38)
        {
           
pMinigun[playerid] -= 1;
        }
        if(
weaponid == 39)
        {
           
pSatchel[playerid] -= 1;
        }
        if(
weaponid == 40)
        {
           
pDetonator[playerid] -= 1;
        }
        if(
weaponid == 41)
        {
           
pSpray[playerid] -= 1;
        }
        if(
weaponid == 42)
        {
           
pExtinguisher[playerid] -= 1;
        }
        if(
weaponid == 43)
        {
           
pCamera[playerid] -= 1;
        }
    return 
1;




Re: Problem with anti weapon cheat from ****** - MBilal - 04.06.2016

First You need to know only some weapon who shot are called at OnPlayerWeaponShot
Like 22,23,24,25,26,27,28,29,30,31,32,33,34,38;

You're decreasing ammo of weapons under OnPlayerWeaponShot
well some weapons shot lot of amo at time like shotgun uzi swan
mp5 you will get kicked !

UnderOnPlayerWeaponShot

i think that is better
Код:
Minigun[playerid] = GetPlayerAmmo(playerid);



Re: Problem with anti weapon cheat from ****** - justjamie - 04.06.2016

Quote:
Originally Posted by MBilal
Посмотреть сообщение
First You need to know only some weapon who shot are called at OnPlayerWeaponShot
Like 22,23,24,25,26,27,28,29,30,31,32,33,34,38;

You're decreasing ammo of weapons under OnPlayerWeaponShot
well some weapons shot lot of amo at time like shotgun uzi swan
mp5 you will get kicked !

UnderOnPlayerWeaponShot

i think that is better
Код:
Minigun[playerid] = GetPlayerAmmo(playerid);
if(GetPlayerAmmo(playerid) != pMinigun[playerid])

so if it doesn't match, you get kicked


Re: Problem with anti weapon cheat from ****** - MBilal - 04.06.2016

Quote:
Originally Posted by justjamie
Посмотреть сообщение
if(GetPlayerAmmo(playerid) != pMinigun[playerid])

so if it doesn't match, you get kicked
Yeah so the ammo must match to not get kicked.


Re: Problem with anti weapon cheat from ****** - Vince - 05.06.2016

Quote:

by UltraScripter

I don't mean to insult, but that user isn't exactly known for quality scripts and this is a prime example of a very poor and unmaintainable script. I suggest using a completely other script, made by someone else.


Re: Problem with anti weapon cheat from ****** - justjamie - 05.06.2016

Quote:
Originally Posted by Vince
Посмотреть сообщение
I don't mean to insult, but that user isn't exactly known for quality scripts and this is a prime example of a very poor and unmaintainable script. I suggest using a completely other script, made by someone else.
i already thought something like that xd.
Can you suggest me someone?


Re: Problem with anti weapon cheat from ****** - justjamie - 07.06.2016

bump.
someone got a good working weapon anticheat for me?