I quit
|
Help Headshot Message Plugin
|
|
Not tested but it should work
Code: using Addon;
namespace Headshot
{
public class Main : CPlugin
{
public override int OnPlayerDamaged(ServerClient attacker, ServerClient victim, string weapon, int damage, string damageMod, HitLocations hitLocation)
{
if (damage >= victim.Other.Health && attacker.Team != victim.Team && victim.XUID != attacker.XUID)
{
if (hitLocation == HitLocations.Head)
{
iPrintLnBold("^1HEADSHOT ^2+250 Points~", attacker);
}
}
return base.OnPlayerDamaged(attacker, victim, weapon, damage, damageMod, hitLocation);
}
}
}
I now host all my MW3 projects on my private GIT repo
01-23-2014, 09:51
(01-23-2014, 09:42)SgtLegend Wrote: Not tested but it should work Ok, i'll try it
01-23-2014, 10:15
You also can do that by 'MeansOfDeath' way.
Pseudocode: Code: if(mod == MOD_HEADSHOT)
+250 etc.. |
| Users browsing this thread: |
| 1 Guest(s) |