NeW Crasher for 0.3z
#6

After studying a little bit about this big problem, I've got that hack and I've seen its behaviour:
pawn Код:
OnPlayerWeaponShot(0,0,1,0,2004318080.000000,2004318080.000000,2004318080.000000)
See those huge numbers ? Yeah... they are reported by that hack to the server. It is sent only with hittype BULLET_HIT_TYPE_PLAYER.

I've made a fix:

pawn Код:
public OnPlayerWeaponShot( playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ )
{
    if( hittype == BULLET_HIT_TYPE_PLAYER ) // Bullet Crashing uses just this hittype
    {
        if( !( -20.0 <= fX <= 20.0 ) || !( -20.0 <= fY <= 20.0 ) || !( -20.0 <= fZ <= 20.0 ) ) // a valid offset, it's impossible that a offset bigger than 20 is legit (less than 0 is impossible, but still, let's check for it, just for the future)
        {
            /*
                If you want, here you can kick the cheater
            */

            return 0; // let's desynchronize that bullet, so players won't crash
        }
    }
    return 1;
}
I bet this will be patched in a future Release of 0.3z, but until then, feel free to use that fix.
Reply


Messages In This Thread
NeW Crasher for 0.3z - by AdytzaSS - 04.09.2014, 09:08
Re: NeW Crasher for 0.3z - by dugi - 04.09.2014, 09:25
Re: NeW Crasher for 0.3z - by AdytzaSS - 04.09.2014, 09:31
Re: NeW Crasher for 0.3z - by FlawPaw - 04.09.2014, 09:49
Re: NeW Crasher for 0.3z - by AdytzaSS - 04.09.2014, 09:50
Re: NeW Crasher for 0.3z - by IstuntmanI - 04.09.2014, 17:44
Re: NeW Crasher for 0.3z - by Arjanz - 05.09.2014, 03:17
Re: NeW Crasher for 0.3z - by Flake. - 05.09.2014, 03:19
Re: NeW Crasher for 0.3z - by Arjanz - 05.09.2014, 03:24
Re: NeW Crasher for 0.3z - by IstuntmanI - 05.09.2014, 05:21

Forum Jump:


Users browsing this thread: 2 Guest(s)