Player Crasher
#6

Quote:
Originally Posted by Penguin1997
Посмотреть сообщение
Anti veh mod crash: https://sampforum.blast.hk/showthread.php?tid=317303

Anti bullet crash:
Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
                if(!(-20000.0 <= z <= 20000.0))
		{
                Kick(playerid);
        	return 0;
        	}
	    	if( hittype != BULLET_HIT_TYPE_NONE )
        	{
       		if( !( -1000.0 <= fX <= 1000.0 ) || !( -1000.0 <= fY <= 1000.0 ) || !( -1000.0 <= fZ <= 1000.0 ) )
         	{
                Kick(playerid);
        	return 0;
       		}
		if((fX <= -1000.0 || fX >= 1000.0) || (fY <= -1000.0 || fY >= 1000.0) || (fZ <= -1000.0 || fZ >= 1000.0) || ((hittype != BULLET_HIT_TYPE_PLAYER) && (hittype != BULLET_HIT_TYPE_VEHICLE) && (hittype != BULLET_HIT_TYPE_OBJECT) && (hittype != BULLET_HIT_TYPE_PLAYER_OBJECT)))
         	{
                Kick(playerid);
         	return 0;
       		}}
                return 1;
}
All I know myself is, the crasher doesn't use any vehicle as there are no vehicles around, he is on foot and has weapon detonator in his hand to send warnings to players to crash them somehow.
You dont even exclude weapons that dont fire at OPWS? dude check for weaponid if its not a firearm (weapon that can shoot bullets) return 0;
Reply


Messages In This Thread
Player Crasher - by Penguin1997 - 18.02.2018, 13:16
Re: Player Crasher - by RogueDrifter - 18.02.2018, 15:15
Re: Player Crasher - by Penguin1997 - 19.02.2018, 11:54
Re: Player Crasher - by RogueDrifter - 19.02.2018, 12:12
Re: Player Crasher - by Penguin1997 - 19.02.2018, 12:28
Re: Player Crasher - by RogueDrifter - 19.02.2018, 12:47
Re: Player Crasher - by Penguin1997 - 19.02.2018, 12:51
Re: Player Crasher - by RogueDrifter - 19.02.2018, 13:04
Re: Player Crasher - by Penguin1997 - 20.02.2018, 20:24

Forum Jump:


Users browsing this thread: 2 Guest(s)