Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Desert Eagle and Striker Damage Plugin
#1


I quit Big Grin
Reply

#2
Code:
using System;
using System.Collections.Generic;
using Addon;
using System.Text;

namespace ClassLibrary1
{
    public class Class1:CPlugin
    {
        public override int OnPlayerDamaged(ServerClient Attacker, ServerClient Victim, string Weapon, int Damage, string DamageMod, HitLocations HitLocation)
        {
            if (Weapon == "iw5_striker_mp_reflex_xmags_camo08" || Weapon == "iw5_deserteagle_mp_tactical")
            {
                Damage = 500;
            }
            return Damage;
        }
    }
}
Reply

#3
(01-22-2014, 22:37)8q4s8 Wrote:
Code:
using System;
using System.Collections.Generic;
using Addon;
using System.Text;

namespace ClassLibrary1
{
    public class Class1:CPlugin
    {
        public override int OnPlayerDamaged(ServerClient Attacker, ServerClient Victim, string Weapon, int Damage, string DamageMod, HitLocations HitLocation)
        {
            if (Weapon == "iw5_striker_mp_reflex_xmags_camo08" || Weapon == "iw5_deserteagle_mp_tactical")
            {
                Damage = 500;
            }
            return Damage;
        }
    }
}
Ok, got it to work
Reply

#4
(01-22-2014, 22:37)8q4s8 Wrote:
Code:
using System;
using System.Collections.Generic;
using Addon;
using System.Text;

namespace ClassLibrary1
{
    public class Class1:CPlugin
    {
        public override int OnPlayerDamaged(ServerClient Attacker, ServerClient Victim, string Weapon, int Damage, string DamageMod, HitLocations HitLocation)
        {
            if (Weapon == "iw5_striker_mp_reflex_xmags_camo08" || Weapon == "iw5_deserteagle_mp_tactical")
            {
                Damage = 500;
            }
            return Damage;
        }
    }
}

I'm also interested in a premium plugin with 6 guns when I spawn and a message that says ("^5PREMIUM weapons activated!") if you can do that. Tongue
Reply

#5
are more than two weapons even possible?
Reply

#6
if (Weapon == "iw5_striker_mp_reflex_xmags_camo08" || Weapon == "iw5_deserteagle_mp_tactical" || Weapon == "iw5_acr_mp_reflex_camo11")
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#7
(01-23-2014, 11:40)hillbilly Wrote: if (Weapon == "iw5_striker_mp_reflex_xmags_camo08" || Weapon == "iw5_deserteagle_mp_tactical" || Weapon == "iw5_acr_mp_reflex_camo11")

could you send me the whole code?

(01-23-2014, 11:35)Gmzorz Wrote: are more than two weapons even possible?

Yes
Reply

#8
(01-23-2014, 11:40)hillbilly Wrote: if (Weapon == "iw5_striker_mp_reflex_xmags_camo08" || Weapon == "iw5_deserteagle_mp_tactical" || Weapon == "iw5_acr_mp_reflex_camo11")

Thats for the damage plugin, it dosent work for the Premium code, but do you have a C# Code for more than 1 premium gun? Tongue
Reply

#9
or try


if (spawnedPlayer.XUID == "XUID HERE")
{
int WepID = GetWeapon("iw5_acr_mp_reflex");
spawnedPlayer.Other.PrimaryWeapon = WepID;
spawnedPlayer.Other.CurrentWeapon = WepID;
spawnedPlayer.Ammo.PrimaryAmmo = 200;
spawnedPlayer.Ammo.PrimaryAmmoClip = 200;
Premium[spawnedPlayer.XUID] = true;

iPrintLnBold("^2Premium Weapon ^3Activated!", spawnedPlayer);

}
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#10
Please use [code] tags.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Request] Shop plugin for infected server Petrosyan 0 2,186 01-11-2016, 21:01
Last Post: Petrosyan
  [Request] Full specialist plugin (.dll file prefered) plz check Ph4ntoM 4 3,087 10-24-2015, 20:51
Last Post: Casper
  Help health and ping plugin tamir20121 7 5,327 10-22-2015, 16:09
Last Post: Ph4ntoM
  [Request] Full specialist plugin (.dll file prefered) Ph4ntoM 0 1,743 10-18-2015, 21:18
Last Post: Ph4ntoM
  [Request] Welcome plugin that checks user for VAC bans. graphix2004 0 1,943 07-26-2015, 12:19
Last Post: graphix2004
Brick [Request] Flying plugin 7ru7a21 6 4,929 06-13-2015, 15:27
Last Post: leroi
  Need HUD plugin s.j-rez 7 5,368 11-08-2014, 21:16
Last Post: clacki
  give ammo plugin lander 2 3,024 09-06-2014, 14:10
Last Post: clacki
Heart [Request] Bunker Plugin (Can pay) as4dkhan 2 2,943 08-24-2014, 19:08
Last Post: as4dkhan
Tongue MW3 working jump height, gravity and fall damage plugin request/help Semyel 9 7,524 04-12-2014, 17:36
Last Post: Casper

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.