08.10.2017, 18:12
Add this
Under:
It is a bulletcrasher causing this most likely.
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
}
}
PHP код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)