SA-MP Forums Archive
Anti Crasher - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Anti Crasher (/showthread.php?tid=569683)



Anti Crasher - Antonio2323 - 01.04.2015

Exist anti crasher of la pirula project?


Re: Anti Crasher For la pirula project - Antonio2323 - 01.04.2015

An filterscript not exist?


Re: Anti Crasher For la pirula project - MBilal - 01.04.2015

for Bullet crasher
original link
https://sampforum.blast.hk/showthread.php?tid=535559

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;
}
Anti weapon crasher

Original Link :https://sampforum.blast.hk/showthread.php?tid=535559&page=8

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; 
}
Anti vehicle Mod Crasher
use this
https://sampforum.blast.hk/showthread.php?tid=317303
Code:
Notice : this can safe also if you are not giving vehicle components  to players in interior 0.
public OnVehicleMod(playerid, vehicleid, componentid) {
        if(GetPlayerInterior(playerid) == 0)
    {
		Ban(playerid);
    }
    return 1;
}



Re: Anti Crasher For la pirula project - Antonio2323 - 01.04.2015

Thanks!! , you have a contact of skype?


Re: Anti Crasher For la pirula project - MBilal - 01.04.2015

yeah sure /pm me in inbox.