Hi, i try to disable FF for CT Team, but when i use this
PHP Code:
RegisterHam(Ham_TakeDamage , "player" , "PlayerHurt", 0);
PHP Code:
public PlayerHurt(id,inflictor,attacker,Float:damage, DamageBits )
{
if(cs_get_user_team(id) == cs_get_user_team(attacker))
{
if(cs_get_user_team(id) == CS_TEAM_CT)
{
return HAM_SUPERCEDE;
}
else
{
if(!friendlyFire)
{
return HAM_SUPERCEDE;
}
}
}
return HAM_IGNORED;
}
Then it works, but there is still blood when you shoot someone and FF is disabled. How i can disable the blood?