As requested here is a plugin to remove friendly-fire. Hitmarkers still exist but you can't kill a teammate.
[code=csharp]
using System;
using System.Collections.Generic;
using System.Text;
using Addon;
namespace ffoff
{
public class noff : CPlugin
{
public override int OnPlayerDamaged(ServerClient Attacker, ServerClient Victim, string Weapon, int Damage)
{
if ((Attacker.Team == Victim.Team) && (Attacker.ClientNum != Victim.ClientNum))
{
if (GetDvar("g_gametype") != "dm")
{
Damage = 0;
iPrintLnBold("DON'T ATTACK TEAMMATES", Attacker);
return base.OnPlayerDamaged(Attacker, Victim, Weapon, Damage);
}
else
{
return base.OnPlayerDamaged(Attacker, Victim, Weapon, Damage);
}
}
else
{
return base.OnPlayerDamaged(Attacker, Victim, Weapon, Damage);
}
}
}
}
[/code]
[code=csharp]
using System;
using System.Collections.Generic;
using System.Text;
using Addon;
namespace ffoff
{
public class noff : CPlugin
{
public override int OnPlayerDamaged(ServerClient Attacker, ServerClient Victim, string Weapon, int Damage)
{
if ((Attacker.Team == Victim.Team) && (Attacker.ClientNum != Victim.ClientNum))
{
if (GetDvar("g_gametype") != "dm")
{
Damage = 0;
iPrintLnBold("DON'T ATTACK TEAMMATES", Attacker);
return base.OnPlayerDamaged(Attacker, Victim, Weapon, Damage);
}
else
{
return base.OnPlayerDamaged(Attacker, Victim, Weapon, Damage);
}
}
else
{
return base.OnPlayerDamaged(Attacker, Victim, Weapon, Damage);
}
}
}
}
[/code]



