13.07.2013, 12:40
(
Последний раз редактировалось bartekdvd; 11.08.2013 в 19:14.
)
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;
}
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