19.11.2014, 20:29
When I was administering a server a while ago(maybe a few months?) I noticed a player shooting a deagle towards the ground, sending mini-gun type bullets all over. Can't say this is a new exploit.
Maybe something like this could prevent it?(assuming the coordinates are still correct)
Assuming the hack still sends bullets towards the ground and not in range of the player(this goes with the hack I experienced before, matching your description).
Maybe something like this could prevent it?(assuming the coordinates are still correct)
pawn Код:
public OnPlayerWeaponShot(playerid, weaponid, hitid, hittype, fX, fY, fZ)
{
if(hittype == BULLET_HIT_TYPE_PLAYER)
{
if(IsPlayerConnected(hitid))
{
new Float: pos[3];
GetPlayerPos(hitid, pos[0], pos[1], pos[2]);
if(IsPlayerInRangeOfPoint(playerid, 15.0, pos[0], pos[1], pos[2]) && weaponid != 34)
{
return true;
}
else if(weaponid != 34)
{
return 0;
}
}
return true;
}

