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(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float: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