Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Plugin no work
#1
Rainbow 
hey i am new here can sombody help me becouse i dont know why this no working



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_44magnum_mp_tactical")
            {
                Damage = 750;
            }
            return Damage;
        }
    }
}
Reply

#2
Try replace "Damage=750;" by "return 750;" also try to make "OnServerLoad" method and put ServerPrint or whatever in it to see if it even loads.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#3
if (Weapon.Contains("44magnum_mp_tactical"))
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#4
(07-24-2014, 22:00)hillbilly Wrote: if (Weapon.Contains("44magnum_mp_tactical"))

this no working ,I testing this on bots infected idk is somthing chang maybe becouse they are bots




Sry for my English
Reply

#5
If you are using my bots plugin damages are setup so bots take a certain damage..
~FYANB~ Servers Website

Primary Account:
[Image: 76561198070236721.png]
Secondary Account:
[Image: 76561198096107676.png]
Third Account:
[Image: 76561198164751656.png]
Reply

#6
Rainbow 
(07-25-2014, 03:00)Casper Wrote: If you are using my bots plugin damages are setup so bots take a certain damage..

yes I using your bots plugin, if I good understanding on normal players will work normal ?
Reply

#7
yes....
~FYANB~ Servers Website

Primary Account:
[Image: 76561198070236721.png]
Secondary Account:
[Image: 76561198096107676.png]
Third Account:
[Image: 76561198164751656.png]
Reply

#8
thanks very much for help
Reply

#9
now is working but all guns flesh stund fall damage and more have 750 damage what is wrong
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_barrett_mp_xmags_camo11" || Weapon == "iw5_rsass_mp_xmags_camo11" || Weapon == "iw5_dragunov_mp_xmags_camo11" || Weapon == "iw5_msr_mp_xmags_camo11" || Weapon == "iw5_l96a1_mp_xmags_camo11" || Weapon == "iw5_as50_mp_xmags_camo11" || Weapon == "iw5_44magnim_mp_tactical_xmags" )
            {
                Damage = 750;
            }
            return Damage;
        }
    }
}
Reply

#10
Add the second '('.
Like
Code:
if( ( something || something1 ) )
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help IAM plugin source GameplaysDPP 8 6,770 07-19-2017, 19:40
Last Post: W4R||The Hyper
Video Help PLUGINS DON'T WORK W4R||The Hyper 1 2,585 07-19-2017, 19:35
Last Post: W4R||The Hyper
Rainbow Help Headshot plugin giving ammo or more points Rudy 1 2,346 02-02-2015, 12:59
Last Post: Danila
  Help C# Mono with SQLite dont work? Dude 5 3,891 01-01-2015, 07:51
Last Post: Dude
  MW3 plugin for BigBrotherBot raminr63 0 2,327 12-28-2014, 20:05
Last Post: raminr63
  Help YuriMAP Plugin clacki 7 5,233 12-27-2014, 03:16
Last Post: Casper
Rainbow Help Can sombody end this plugin premium to work Rudy 6 4,013 07-26-2014, 22:16
Last Post: Rudy
  Help Server crashes after using plugin Gmzorz 2 2,725 01-23-2014, 19:04
Last Post: Gmzorz
  Ban cmd doesn't work. UlTiiMaTuM 19 10,841 11-26-2013, 17:16
Last Post: Casper

Forum Jump:


Users browsing this thread:
3 Guest(s)

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