PHP Code:
#include <amxmodx>
#include <hamsandwich>
public plugin_init()
RegisterHam( Ham_TakeDamage, "player", "ham_TakeDamage" );
public ham_TakeDamage( id, inflictor, attacker, Float:damage, damagebits )
{
if( damagebits == DMG_BULLET )
return random_num( 0, 3 ) ? HAM_IGNORED : HAM_SUPERCEDE;
return HAM_IGNORED;
}