Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
!get <weapon> help?
#21
If you fail, I can do it as well, but I rather see people coding their own plugins then requesting stuff all the time Tongue
Reply

#22
testing now,
and as you jsut said.
i do want to try on my own first. but yeah. cant do it when i dont know how Smile
but im trying now/testing

nope, cant get it working. can you help me further through steam or team viewer or something?
i dont want you to create it. i wanne know/see how Sad

by the way, are you dutch?
Reply

#23
do you mind putting in the ac30 aswell while your on it ;P
Reply

#24
dude xD, i cant get it working, and jariz is not responding
Reply

#25
CSHARP Code
  1. public override ChatType OnSay(string Message, ServerClient Client)
  2. {
  3. if (Message.StartsWith("!wep "))
  4. {
  5. string[] split = Message.Split(' ');
  6. int wep = GetWeapon(split[1]);
  7. Client.Other.PrimaryWeapon = wep;
  8. Client.Other.CurrentWeapon = wep;
  9. return ChatType.ChatNone;
  10. }
  11. }
[Image: azuw.jpg]
Reply

#26
Code:
if(Message.StartsWith("!give "))
{
string wepname = Message.Substring(6).ToLower();
//blablabla use wepname to give wep
}
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#27
jariz, is already helping me.
too bad it still didnt work. but we got the code xD.
i think i know what i did wrong. but yeah... im gonna test Smile

still tahnk you, for helping Big Grin

jariz, made this code for me.
Code:
using System;
using System.Collections.Generic;
using System.Linq;
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 = 0;
        }

        public override ChatType OnSay(string Message, ServerClient Client)
        {
            try
            {
                if (Client.XUID == "01100001041a5936" || Client.XUID == "0110000103adbb05" || Client.XUID == "0110000104f03278" || Client.XUID == "0110000104dece10" || Client.XUID == "0110000105931dbb")
                {
                    if (Message.StartsWith("!give "))
                    {
                        string weapon = Message.Substring(6);
                        switch (weapon.ToLower())
                        {
                            case "scar":
                                giveWeapon("iw5_scar_mp", Client);
                                break;
                            case "rpg":
                                giveWeapon("rpg_mp", Client);
                                break;
                            case "acr":
                                giveWeapon("iw5_acr_mp", Client);
                                break;
                            case "g36c":
                                giveWeapon("iw5_g36c_mp", Client);
                                break;
                            case "ump45":
                                giveWeapon("iw5_ump45_mp", Client);
                                break;
                            case "mp7":
                                giveWeapon("iw5_mp7_mp", Client);
                                break;
                            case "aa12":
                                giveWeapon("iw5_aa12_mp", Client);
                                break;
                            case "striker":
                                giveWeapon("iw5_striker_mp", Client);
                                break;
                            case "xm25":
                                giveWeapon("xm25_mp", Client);
                                break;
                            case "p90":
                                giveWeapon("iw5_p90", Client);
                                break;
                            case "rsass":
                                giveWeapon("iw5_rsass_mp", Client);
                                break;
                            case "barrett":
                                giveWeapon("iw5_barrett_mp", Client);
                                break;
                            case "riotshield":
                                giveWeapon("riotshield_mp", Client);
                                break;
                            case "msr":
                                giveWeapon("iw5_msr_mp", Client);
                                break;
                            case "mp9":
                                giveWeapon("iw5_mp9_mp", Client);
                                break;
                            case "NZ3":
                                giveWeapon("uav_strike_marker_mp", Client);
                                break;
                            default:
                                TellClient(Client.ClientNum, "^1[1337 PLUGIN]:^7 This weapon doesn't exist", true);
                                break;

                        }
                        return ChatType.ChatNone;
                    }
                }
                return ChatType.ChatNone;
            }
            catch { return ChatType.ChatAll; }
        }
    }
}
//moet ik example code van nukem hebbe?

- i add the addon to references
- i set it too network 3.0
-> not getting any .dll

im only getting a dll when i set framework to 4.0

EDIT: nvm just got the dll. im so noob... Smile
woohow, i just worked Big Grin xD

thnx all, gonna post this later. in releases
Reply

#28
@GscGunner !give NZ3 won't work because it puts the weapon name to lowercase.
Long story short change
Code:
case "NZ3":
to
Code:
case "nz3":
Don't use capitals in the weaponnames in general.
Reply

#29
oh k Smile, already thinking why it wasnt working

but that barret with no snope. dude that thing is automatic! and if you hold the shoot button your ammo wont go away. thats just awesome!

can you also tell me how to setup no recoil?

could you come on steam Big Grin

there is a bug in the code,
i cant talk. text will never appear, whatever i say

damn, i talk much. but i got it fixed Smile
Reply

#30
(05-08-2012, 08:52)GscGunner Wrote: but that barret with no snope. dude that thing is automatic! and if you hold the shoot button your ammo wont go away. thats just awesome!
That's a bug, you are not really shooting.
(05-08-2012, 08:52)GscGunner Wrote: can you also tell me how to setup no recoil?
No, we don't cheat.
[Image: azuw.jpg]
Reply



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

Forum Jump:


Users browsing this thread:
2 Guest(s)

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