Huge player shoots self spam filling our logs
#3

Quote:
Originally Posted by Puff
Посмотреть сообщение
Add this
PHP код:
  if(hittype != BULLET_HIT_TYPE_NONE)//0.3.7 Aim Crash
    
{
        if((
fX <= -1000.0 || fX >= 1000.0) || (fY <= -1000.0 || fY >= 1000.0) || (fZ <= -1000.0 || fZ >= 1000.0) || ((hittype != BULLET_HIT_TYPE_PLAYER) && (hittype != BULLET_HIT_TYPE_VEHICLE) && (hittype != BULLET_HIT_TYPE_OBJECT) && (hittype != BULLET_HIT_TYPE_PLAYER_OBJECT)))
        {
            
Kick(playerid);
            return 
0//To desynchronize the shot and not to crash anyone
        
}
    }
    if(
hittype != BULLET_HIT_TYPE_NONE//0.3.7 -  Bullet Crashing uses just this hittype
    
{
        if(!(-
1000.0 <= fX <= 1000.0) || !(-1000.0 <= fY <= 1000.0) || !(-1000.0 <= fZ <= 1000.0)) // 0.3.7 Bullet Crash
        
{
            
Kick(playerid);
            return 
0//To desynchronize the shot and not to crash anyone
        
}
    } 
Under:
PHP код:
public OnPlayerWeaponShot(playeridweaponidhittypehitidFloat:fXFloat:fYFloat:fZ
It is a bulletcrasher causing this most likely.
Ah, I was checking for invalid weapon ids only under OnPlayerWeaponshot, will add that and see the results, thanks
None of my players crashed though, so I think it might not be that
Reply


Messages In This Thread
Huge player shoots self spam filling our logs - by Battlezone - 08.10.2017, 17:57
Re: Huge player shoots self spam filling our logs - by Puff - 08.10.2017, 18:12
Re: Huge player shoots self spam filling our logs - by Battlezone - 08.10.2017, 18:18
Re: Huge player shoots self spam filling our logs - by Puff - 08.10.2017, 19:21
Re: Huge player shoots self spam filling our logs - by jlalt - 08.10.2017, 19:46
Re: Huge player shoots self spam filling our logs - by Battlezone - 08.10.2017, 19:49

Forum Jump:


Users browsing this thread: 1 Guest(s)