SA-MP Forums Archive
Possible Bug with GetPlayerWeapon (0.3e) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: Possible Bug with GetPlayerWeapon (0.3e) (/showthread.php?tid=344448)



Possible Bug with GetPlayerWeapon (0.3e) - lolumadd_ - 21.05.2012

pawn Код:
switch(GetPlayerWeapon(playerid))
        {
            case 35..38,17,43..45: Ban();
        }
I've been getting bans from innocent players who clearly aren't hackers. This system I'm using for weapon hack banning hasn't changed since 0.3a and this never happened before. This started after converting to 0.3e. Would GetPlayerArmedWeapon do the same thing possibly? I'm thinking this could be a problem with returning weapon values.

Is anyone else experiencing this problem?


Re: Possible Bug with GetPlayerWeapon (0.3e) - MP2 - 21.05.2012

Maybe they got the weapon some how?


Re: Possible Bug with GetPlayerWeapon (0.3e) - DaRealShazz - 21.05.2012

There is another bug with weapon 37 (Flamethrower). I think it has to do with vehicle. Sometimes the death reason comes as Flamethrower.


Re: Possible Bug with GetPlayerWeapon (0.3e) - lolumadd_ - 21.05.2012

It doesn't check the death reason.


Re: Possible Bug with GetPlayerWeapon (0.3e) - Lorenc_ - 21.05.2012

fine here (afaik)