PHP Code:
#include <amxmodx>
#include <hamsandwich>
public plugin_init( )
{
RegisterHam( Ham_TakeDamage, "player", "fwd_TakeDamage", 0 );
}
public fwd_TakeDamage( victim, inflictor, attacker, Float:damage, dmgbits )
{
if ( is_user_alive( attacker ) )
{
if ( get_user_team( attacker ) == 1 )
{
return HAM_SUPERCEDE;
}
return HAM_IGNORED;
}
Try this, not tested.
__________________