Bullet Crasher 0.3.7
#1

Hello,
UGbase have Recently publish Bullet Crasher for 0.3.7 And Anti Bullet Crasher does not seem to be working on it.
i have tested the Crasher.


the Following anti Bullet crasher is not working
PHP код:
public OnPlayerWeaponShotplayeridweaponidhittypehitidFloat:fXFloat:fYFloat:fZ )
{
    if( 
hittype != BULLET_HIT_TYPE_NONE // Bullet Crashing uses just this hittype
    
{
        if( !( -
1000.0 <= fX <= 1000.0 ) || !( -1000.0 <= fY <= 1000.0 ) || !( -1000.0 <= fZ <= 1000.0 ) ) // a valid offset, it's impossible that a offset bigger than 1000 is legit (also less than -1000.0 is impossible, not used by this hack, but still, let's check for it, just for the future, who knows what hacks will appear). The object with biggest offset is having ~700-800 radius.
        
{
        
BanExWithMessage(playerid0xFF0000FF"You have been banned!""Crashing");
        return 
0// let's desynchronize that bullet, so players won't crash
        
}
    }
    return 
1;

Debug
Reply
#2

PHP код:
public OnPlayerWeaponShot(playeridweaponidhittypehitidFloat:fXFloat:fYFloat:fZ) {
    if(
hittype != BULLET_HIT_TYPE_NONE) {
        if((
fX <= -1000.0 || fX >= 1000.0) || (fY <= -1000.0 || fY >= 1000.0) || (fZ <= -1000.0 || fZ >= 1000.0) || (hittype || hittype 4)) {
            return 
Kick(playerid);
        }
    }
    else {
        if (
weaponid <= || weaponid 46) return 0// Kick(playerid);
    
}
    return 
1;

So use. On my server I have no problems.
Reply
#3

Reply
#4

Try using this https://sampforum.blast.hk/showthread.php?tid=581017
Reply
#5

You've to check for invalid weapon IDs also.
Reply
#6

Someone also crashes my server no anti-crasher is working. I usually have 60 players and a guy comes and start to crash
Reply
#7

Код:
	

    #include <a_samp>
     
    public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
    {
            if(!((22 <= weaponid <= 34) || weaponid == 38)) Kick(playerid);
            return 1;
    }
It might work who knows :P
Reply
#8

Quote:
Originally Posted by Wizzard2H
Посмотреть сообщение
Код:
	

    #include <a_samp>
     
    public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
    {
            if(!((22 <= weaponid <= 34) || weaponid == 38)) Kick(playerid);
            return 1;
    }
It might work who knows :P
Tried, Doesnt Work.

P.S. I Totally Agree With your Signature.
Reply
#9

Quote:
Originally Posted by Faqahat
Посмотреть сообщение
Tried, Doesnt Work.

P.S. I Totally Agree With your Signature.
It should work.... Maybe that's another crasher
Reply
#10

Emmet_ published an include recently, just incorporate it into your gamemode.

https://sampforum.blast.hk/showthread.php?tid=581017

Don't bother banning for invalid shots, just desync them.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)