Anti-SAMPFUNC???
#1

my server is attacked with "SAMPFUNC" hack and crash players.
Reply
#2

pawn Код:
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;
}
Reply
#3

Quote:
Originally Posted by DaTa[X]
Посмотреть сообщение
pawn Код:
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;
}
I worked perfect, Thanks.
Reply
#4

Quote:
Originally Posted by DaTa[X]
Посмотреть сообщение
pawn Код:
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;
}
Next time better link to the topic: https://sampforum.blast.hk/showthread.php?tid=535559 .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)