12-01-2013, 18:28
12-01-2013, 21:23
Yeah. I like weapon increases.
Spoiler (Click to View)
I think ... you need this stuff.
Put this in OnPlayerDamaged:
Put this in OnPlayerDamaged:
Code:
if(weapon == "your weapon name")
{
iDamage = <your custom damage>;
}
12-02-2013, 09:03
SailorMoon thank you!
Here is what I got, but it does not work.
what did I do wrong?
Here is what I got, but it does not work.
what did I do wrong?
Spoiler (Click to View)
Code:
using Addon;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace mw3zombie
{
public class Damage : CPlugin
{
public int OnPlayerDamaged( string Weapon, int iDamage)
{
if(Weapon == "iw5_44magnum_mp")
{
iDamage = 500;
}
if (Weapon == "44magnum_mp")
{
iDamage = 500;
}
return iDamage;
}
}
}
12-02-2013, 14:45
Your "OnPlayerDamaged" has wrong parameters. Find the full one.
12-02-2013, 15:35
This works, already running this.
public override int OnPlayerDamaged(ServerClient Attacker, ServerClient Victim, string Weapon, int Damage)
{
if (Weapon == "flash_grenade_mp")
{
Damage = 50;
}
public override int OnPlayerDamaged(ServerClient Attacker, ServerClient Victim, string Weapon, int Damage)
{
if (Weapon == "flash_grenade_mp")
{
Damage = 50;
}