Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Plugin to get weapons
#1
Hey guys it's me again,

now I need a plugin, which gives Admins, mods and VIP's some weapons with attachments, like FMG akimbo, ACR with silencer, ...
Normal user shouldn't have this permission.

Example: !fmg - Gives FMG akimbo
!acr - Gives ACR with silencer and extended mags

And if possible pls make a command for admins, VIP's and mods, to get double health and double speed.
[Image: b_560_95_1.png]
Reply

#2
I don't think if someone will do it.
It's very easy. Just simple statements.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#3
Well, if someone gives me the code for weapons with attachments I could try it
[Image: b_560_95_1.png]
Reply

#4
(12-10-2013, 14:00)xxxLik3aB0SSxxx Wrote: Well, if someone gives me the code for weapons with attachments I could try it

http://www.itsmods.com/forum/Thread-Tuto...ments.html


Code:
iw5_acr_mp_xmags_silencer_01

iw5_acr_mp == ACR
_xmags == Extended Mags
_silencer == Silencer
~FYANB~ Servers Website

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

#5
Thanks, just a question: is it possible to add more than just 1 weapon perk and attachments? And what does the "_01" mean?
[Image: b_560_95_1.png]
Reply

#6
(12-10-2013, 17:45)xxxLik3aB0SSxxx Wrote: Thanks, just a question: is it possible to add more than just 1 weapon perk and attachments? And what does the "_01" mean?

opps thats _silencer_01

and i have had three attachments on a couple of weapons
~FYANB~ Servers Website

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

#7
Thanks, and how can I add camo? Just add _gold?
[Image: b_560_95_1.png]
Reply

#8
(12-10-2013, 18:20)xxxLik3aB0SSxxx Wrote: Thanks, and how can I add camo? Just add _gold?

_camo01
|
_camo12
~FYANB~ Servers Website

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

#9
Now I'm so far:
Code:
using System;
using System.Collections.Generic;
using Addon;
using System.IO;

namespace NS_Plugin
{
    public class Main : CPlugin
    {

        public override ChatType OnSay(string Message, ServerClient Client)
        {
            string str = Message.ToLower();
            if (str.StartsWith("!lol"))
            {
                Client.Other.SetPlayerModel("mp_fullbody_opforce_juggernaut");
            }
            if (str.StartsWith("!allperks"))
                {
                    Client.Other.SetPerk(GetPerk("all_perks_bonus"));
                }
            if (str.StartsWith("!acr"))
                {
                    if (Client.Team == Teams.Allies)
                    {
                        Client.Other.PrimaryWeapon = GetWeapon("iw5_acr_mp_specialty_bulletpenetration_specialty_marksman_specialty_armorpiercing_specialty_longerrange_specialty_moredamage_specialty_lightweight_xmags_silencer_01_camo12");
                        Client.Ammo.PrimaryAmmoClip = 250;
                    }
                    else
                    {
                        iPrintLnBold("^1You're not in the right team!", Client);
                    }
                }
            return ChatType.ChatNone;
            if (str.StartsWith("!ump"))
                {
                    if (Client.Team == Teams.Allies)
                    {
                        Client.Other.PrimaryWeapon = GetWeapon("iw5_ump45_mp_specialty_bulletpenetration_specialty_marksman_specialty_armorpiercing_specialty_longerrange_specialty_moredamage_specialty_lightweight_xmags_silencer_01_camo12");
                        Client.Ammo.PrimaryAmmoClip = 250;
                    }
                    else
                    {
                        iPrintLnBold("^1You're not in the right team!", Client);
                    }
                }
            return ChatType.ChatNone;
            if (str.StartsWith("!fmg"))
                {
                    if (Client.Team == Teams.Allies)
                    {
                        Client.Other.SecondaryWeaponAkimbo = true;
                        Client.Other.SecondaryWeapon = GetWeapon("iw5_fmg9_mp");
                        Client.Ammo.SecondaryAkimboAmmo = 300;
                    }
                    else
                    {
                        iPrintLnBold("^1You're not in the right team!", Client);
                    }
                }
            return ChatType.ChatNone;
            if (str.StartsWith("!ammo"))
                {
                    if (Client.Team == Teams.Allies)
                    {
                        Client.Ammo.PrimaryAmmoClip = 250;
                        Client.Ammo.SecondaryAmmoClip = 100;
                    }
                    else
                    {
                        iPrintLnBold("^1You're not in the right team!", Client);
                    }
                }
            return ChatType.ChatNone;
          
            if (str.StartsWith("!health"))
            {
                if (Client.Team == Teams.Axis)
                {
                    Client.Other.Health = 200;
                }
                else
                {
                    iPrintLnBold("^1You're not in the right team!", Client);
                }
            }
            return ChatType.ChatNone;
            if (str.StartsWith("!speed"))
            {
                if (Client.Team == Teams.Axis)
                {  
                    Client.Other.SpeedScale = 1.5f;
                }
                else
                {
                    iPrintLnBold("^1You're not in the right team!", Client);
                }
            }
            return ChatType.ChatNone;
        }
    }
}

Is there any mistake? Do you think this will work?
[Image: b_560_95_1.png]
Reply

#10
Put the 'return ChatType.ChatNone' inside of statement(s).
I mean:

Your code:
Code:
if (str.StartsWith("!fmg"))
                {
                    if (Client.Team == Teams.Allies)
                    {
                        Client.Other.SecondaryWeaponAkimbo = true;
                        Client.Other.SecondaryWeapon = GetWeapon("iw5_fmg9_mp");
                        Client.Ammo.SecondaryAkimboAmmo = 300;
                    }
                    else
                    {
                        iPrintLnBold("^1You're not in the right team!", Client);
                    }
                }
            return ChatType.ChatNone;

But it should be..
Code:
if (str.StartsWith("!fmg"))
                {
                    if (Client.Team == Teams.Allies)
                    {
                        Client.Other.SecondaryWeaponAkimbo = true;
                        Client.Other.SecondaryWeapon = GetWeapon("iw5_fmg9_mp");
                        Client.Ammo.SecondaryAkimboAmmo = 300;
                    }
                    else
                    {
                        iPrintLnBold("^1You're not in the right team!", Client);
                    }
return ChatType.ChatNone;
                }
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,410 01-11-2016, 21:01
Last Post: Petrosyan
  [Request] Full specialist plugin (.dll file prefered) plz check Ph4ntoM 4 3,286 10-24-2015, 20:51
Last Post: Casper
  Help health and ping plugin tamir20121 7 5,625 10-22-2015, 16:09
Last Post: Ph4ntoM
  [Request] Full specialist plugin (.dll file prefered) Ph4ntoM 0 1,862 10-18-2015, 21:18
Last Post: Ph4ntoM
  [Request] Welcome plugin that checks user for VAC bans. graphix2004 0 2,067 07-26-2015, 12:19
Last Post: graphix2004
Brick [Request] Flying plugin 7ru7a21 6 5,278 06-13-2015, 15:27
Last Post: leroi
  Need HUD plugin s.j-rez 7 5,840 11-08-2014, 21:16
Last Post: clacki
  give ammo plugin lander 2 3,196 09-06-2014, 14:10
Last Post: clacki
Heart [Request] Bunker Plugin (Can pay) as4dkhan 2 3,210 08-24-2014, 19:08
Last Post: as4dkhan
Tongue MW3 working jump height, gravity and fall damage plugin request/help Semyel 9 7,940 04-12-2014, 17:36
Last Post: Casper

Forum Jump:


Users browsing this thread:
2 Guest(s)

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