Turn on FF and then block Ham_TakeDamage hook (before that check if the player is a terrorist and he is attacking a terrorist, if it's true, then don't block and if not, block)
Example:
PHP Code:
#include <amxmodx>
#include <hamsandwich>
new bool:CanAttackFriends[33];
public plugin_init(){
RegisterHam(Ham_TakeDamage,"player","fw_HamTakeDamage");
}
public fw_HamTakeDamage(victim, inflictor, attacker, Float:dmg, dmgbits){
if (get_user_team(victim) == 1 && get_user_team(attacker) == 1 && CanAttackFriends[attacker])
return HAM_IGNORED;
return HAM_SUPERCEDE;
}
__________________