!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?

#32
can you send me the dll

#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; } } } }

#34
Code:
default: TellClient(Client.ClientNum, "", true);
lolwat

#35
hmm, didnt remember iremoved that??? ?_? lololol

#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

#37
MW3 just got updated, cant fucking test >_< >_< >_<

#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.

#39
Hey,

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

#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



Possibly Related Threads…
Thread Author Replies Views Last Post
Question Help Mw2 weapon skin question FroxIVx4 1 3,939 10-13-2013, 16:54
Last Post: hmann
Question Help Weapon Name iRoNinja 8 9,012 10-08-2013, 08:31
Last Post: iRoNinja
  Mw2 weapon porting? Cuddlyedits 3 6,614 09-15-2013, 16:43
Last Post: DidUknowiPwn
Exclamation [Request] Random Weapon At Spawn Scripts18 3 6,892 07-27-2013, 23:53
Last Post: DidUknowiPwn
  Help Mw2 weapon skin question FroxIVx4 1 4,146 07-06-2013, 19:22
Last Post: surtek
  [Request] List of all weapon models DidUknowiPwn 3 6,513 04-20-2013, 09:13
Last Post: Dominator56
  [Release] Black Ops ZM & MP weapon ID's JariZ 7 36,082 03-01-2013, 22:04
Last Post: JariZ
  [Request] Weapon info Hud hillbilly 5 5,918 03-01-2013, 02:30
Last Post: archit
Video [Tutorial] (Video) How to create the Beretta (or any CoD4's weapon) in Black Ops hitmax 19 18,752 02-08-2013, 00:18
Last Post: Gamemaster20
  Weapon IDs? jarniboi 4 4,315 02-07-2013, 21:51
Last Post: 8q4s8

Forum Jump:


Users browsing this thread:
1 Guest(s)

Powered By MyBB, © 2002-2026 Melroy van den Berg.