• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
!get <weapon> help?
#31
lolol,
ok xD

ok the !give weapons for admins is perfect,

im trying to make, it that everybody can choose between a few shotguns, i got it working.
too bad, infected can then also get shotguns. and thats not what i ofcourse want.

how do i set it up that only survivors can get the guns.

thank you.
anybody Big Grin?
  Reply
#32
can you send me the dll
  Reply
#33
ill send you source

source
i got a code of jariz for only for team.allies. but it didnt work, i left it in the code for u
Code:
using System;
using System.Collections.Generic;
using System.Text;
using Addon;

namespace kaas
{
    public class Class1 : CPlugin
    {
        public void giveWeapon(string wep, ServerClient client)
        {
            int wepID = GetWeapon(wep);
            client.Other.PrimaryWeapon = wepID;
            client.Other.CurrentWeapon = wepID;
            client.Ammo.PrimaryAmmoClip = 241;
            client.Ammo.PrimaryAmmo = 80;
        }

        public override ChatType OnSay(string Message, ServerClient Client)
        {

            {
                if (Client.Team == Teams.Allies)
                {
                    if (Message.StartsWith("!give "))
                    {
                        string weapon = Message.Substring(6);
                        switch (weapon.ToLower())
                        {
                            //case "aa12":
                            //    giveWeapon("iw5_aa12r_mp", Client);
                            //    break;
                            case "striker":
                                giveWeapon("iw5_striker_mp", Client);
                                ServerSay("^7Striker granted to ^3" + Client.Name + "", true);
                                break;
                            case "ksg12":
                                giveWeapon("iw5_ksg_mp", Client);
                                ServerSay("^7Ksg granted to ^3" + Client.Name + "", true);
                                break;
                            case "spas12":
                                giveWeapon("iw5_spas12_mp", Client);
                                ServerSay("^7Spas 12 granted to ^3" + Client.Name + "", true);
                                break;
                            case "usas12":
                                giveWeapon("iw5_usas12_mp", Client);
                                ServerSay("^7Usas 12 granted to ^3" + Client.Name + "", true);
                                break;
                            default:
                                TellClient(Client.ClientNum, "", true);
                                break;

                        }
                        return ChatType.ChatAll;

                    }
                }
                return ChatType.ChatAll;
            }

        }
    }
}
  Reply
#34
Code:
default:
                                TellClient(Client.ClientNum, "", true);
lolwat
  Reply
#35
hmm, didnt remember iremoved that??? ?_? lololol
  Reply
#36
change
Code:
if (Client.Team == Teams.Allies)
                {
                    if (Message.StartsWith("!give "))
                    {

to
Code:
if (Message.StartsWith("!give "))
                    {
if (Client.Team == Teams.Allies)
                {
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
  Reply
#37
MW3 just got updated, cant fucking test >_< >_< >_<
  Reply
#38
im now at school, as soon im home. i'll update addon and shit.
and give you guys the source and dll. of the plugin that actually @JariZ made.
  Reply
#39
Hey,

Is this still working and can you release the .dll only or with the source code and with all weapons?
  Reply
#40
(10-16-2012, 15:52)jari333 Wrote: Hey,

Is this still working and can you release the .dll only or with the source code and with all weapons?

Use PM for this.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question Help Mw2 weapon skin question FroxIVx4 1 2,755 10-13-2013, 16:54
Last Post: hmann
Question Help Weapon Name iRoNinja 8 5,996 10-08-2013, 08:31
Last Post: iRoNinja
  Mw2 weapon porting? Cuddlyedits 3 4,322 09-15-2013, 16:43
Last Post: DidUknowiPwn
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 30,306 09-11-2013, 15:11
Last Post: EnVi Sweden Rocks
Exclamation [Request] Random Weapon At Spawn Scripts18 3 4,364 07-27-2013, 23:53
Last Post: DidUknowiPwn
  Help Mw2 weapon skin question FroxIVx4 1 2,679 07-06-2013, 19:22
Last Post: surtek
  [Request] List of all weapon models DidUknowiPwn 3 4,315 04-20-2013, 09:13
Last Post: Dominator56
  [Release] !weapon Plugin 8q4s8 40 23,460 03-24-2013, 17:02
Last Post: X-Track
  [Release] Black Ops ZM & MP weapon ID's JariZ 7 29,077 03-01-2013, 22:04
Last Post: JariZ
  [Request] Weapon info Hud hillbilly 5 3,532 03-01-2013, 02:30
Last Post: archit

Forum Jump:


Users browsing this thread: 1 Guest(s)