06.09.2014, 17:40
my server is attacked with "SAMPFUNC" hack and crash players.
public OnPlayerWeaponShot( playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ )
{
if( hittype == BULLET_HIT_TYPE_PLAYER )
{
if( !( -20.0 <= fX <= 20.0 ) || !( -20.0 <= fY <= 20.0 ) || !( -20.0 <= fZ <= 20.0 ) )
{
// kick or ban the crasher
return 0;
}
}
return 1;
}
pawn Код:
|
pawn Код:
|