[FilterScript] Anti-(Player)Crasher
#1

pawn Код:
#define FILTERSCRIPT

#include <a_samp>
 
//Anti-(Player)Crasher  0.3x
//by bartekdvd
public OnPlayerUpdate(playerid)
{
    if (GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
    {
        new Float:vec[3];
        GetPlayerCameraFrontVector(playerid, vec[0], vec[1], vec[2]);
        new bool:possible_crasher = false;
        for (new i = 0; !possible_crasher && i < sizeof(vec); i++)
            if (floatabs(vec[i]) > 10.0)
                possible_crasher = true;
       
        if (possible_crasher)
            return 0; //do not send fake data, prevents crash
    }

    return 1;
}
Q: What is the issue?
A: The attacker sends modified aiming information like bad camera front vector or/and bad camera position. If attacker wants to crash his victim he needs to switch to some melee weapon and press secondary attack key.

Q: What is the range of attack?
A: If attacker is only streamed for some player he can crash him.

Q: Can you send me this crasher program?
A: Nope.

Probably most of you didn't know about this issue.

DOWNLOAD: http://pastebin.com/egd2RdYt
Reply


Messages In This Thread
Anti-(Player)Crasher - by bartekdvd - 13.07.2013, 12:40
Re: Anti-(Player)Crasher - by ahmad95 - 13.07.2013, 14:19
Re: Anti-(Player)Crasher - by bartekdvd - 15.07.2013, 18:15
Re: Anti-(Player)Crasher - by iJumbo - 15.07.2013, 18:36
Re: Anti-(Player)Crasher - by Dopefull - 15.07.2013, 21:30
Re: Anti-(Player)Crasher - by Konstantinos - 15.07.2013, 21:36
Re: Anti-(Player)Crasher - by Dopefull - 16.07.2013, 11:31
Re: Anti-(Player)Crasher - by Lorenc_ - 11.08.2013, 10:51
Re: Anti-(Player)Crasher - by IstuntmanI - 11.08.2013, 11:15
Re: Anti-(Player)Crasher - by bartekdvd - 11.08.2013, 15:18
Re: Anti-(Player)Crasher - by dEcooR - 11.08.2013, 17:27
Re: Anti-(Player)Crasher - by Pro_LiZzy - 11.08.2013, 20:39
Re: Anti-(Player)Crasher - by EmpireSk - 11.08.2013, 20:44
Re: Anti-(Player)Crasher - by BodyBoardVEVO - 11.08.2013, 22:01
Re: Anti-(Player)Crasher - by ReV. - 17.08.2013, 21:32
Re: Anti-(Player)Crasher - by bartekdvd - 18.08.2013, 18:30
Re: Anti-(Player)Crasher - by Strier - 23.08.2013, 21:05
Re: Anti-(Player)Crasher - by Mean - 29.08.2013, 21:05
Re: Anti-(Player)Crasher - by Roel - 09.09.2013, 07:57
Re: Anti-(Player)Crasher - by iJumbo - 09.09.2013, 09:59
Re: Anti-(Player)Crasher - by Mean - 11.09.2013, 13:57
Re: Anti-(Player)Crasher - by Sting. - 12.09.2013, 08:59

Forum Jump:


Users browsing this thread: 8 Guest(s)