SA-MP Forums Archive
Player Crasher - 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: Player Crasher (/showthread.php?tid=576247)



Player Crasher - X337 - 02.06.2015

Hello,
My server was attacked with some crasher,
I already use this code :
Код:
public OnPlayerWeaponShot( playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float: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.
		{
			/*
				If you want, here you can kick the cheater
			*/
			return 0; // let's desynchronize that bullet, so players won't crash
		}
	}
    return 1;
}
and this code :
Код:
public OnPlayerUpdate(playerid) 
{ 
    if(GetPlayerCameraMode(playerid) == 53)  
    {  
        new Float:kLibPos[3];  
        GetPlayerCameraPos(playerid, kLibPos[0], kLibPos[1], kLibPos[2]); 
        if ( kLibPos[2] < -50000.0 || kLibPos[2] > 50000.0 )  
        {  
            BanEx(playerid, "WeaponCrasher");  
            return 0;  
        }  
    }   
    return 1; 
}
to prevent bullet crasher, can anyone tell me how to detect that crasher?
Please help me, my server is on 0.3z-R4.


AW: Server Crasher - Kaliber - 02.06.2015

Dude, there is a difference between server crasher & player crasher...

if the server crashes, just download crashdetect and check in the log what happend


Re: AW: Server Crasher - X337 - 02.06.2015

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
Dude, there is a difference between server crasher & player crasher...

if the server crashes, just download crashdetect and check in the log what happend
Already do that, there's no warning or any error message on server_log.


AW: Re: AW: Server Crasher - Kaliber - 02.06.2015

Quote:
Originally Posted by bondowocopz
Посмотреть сообщение
Already do that, there's no warning or any error message on server_log.
...then the plugin didn't loaded...or the server didn't crashed...

Check that


Re: AW: Re: AW: Server Crasher - X337 - 02.06.2015

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
...then the plugin didn't loaded...or the server didn't crashed...

Check that
The server didn't crashed but players on server crashed.
crashdetect plugins succesfully loaded.


AW: Re: AW: Re: AW: Server Crasher - Kaliber - 02.06.2015

Quote:
Originally Posted by bondowocopz
Посмотреть сообщение
The server didn't crashed but players on server crashed.
crashdetect plugins succesfully loaded.
Okay, then crashdetect is useless, because this only checks server crashes.

So change the Thread Title into player crasher...and check this out: https://sampforum.blast.hk/showthread.php?tid=317303


Re: Player Crasher - Vince - 02.06.2015

All of these things you posted were fixed in 0.3.7 and most popular servers have updated by now, so should you.