10.07.2015, 20:05
Hello,
UGbase have Recently publish Bullet Crasher for 0.3.7 And Anti Bullet Crasher does not seem to be working on it.
i have tested the Crasher.
the Following anti Bullet crasher is not working
Debug
UGbase have Recently publish Bullet Crasher for 0.3.7 And Anti Bullet Crasher does not seem to be working on it.
i have tested the Crasher.
the Following anti Bullet crasher is not working
PHP код:
public OnPlayerWeaponShot( playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ )
{
if( hittype != BULLET_HIT_TYPE_NONE ) // Bullet Crashing uses just this hittype
{
if( !( -1000.0 <= fX <= 1000.0 ) || !( -1000.0 <= fY <= 1000.0 ) || !( -1000.0 <= fZ <= 1000.0 ) ) // a valid offset, it's impossible that a offset bigger than 1000 is legit (also less than -1000.0 is impossible, not used by this hack, but still, let's check for it, just for the future, who knows what hacks will appear). The object with biggest offset is having ~700-800 radius.
{
BanExWithMessage(playerid, 0xFF0000FF, "You have been banned!", "Crashing");
return 0; // let's desynchronize that bullet, so players won't crash
}
}
return 1;
}