Release MW3: Random Weapon Plugin V1
#31
Well I haven't gotten enough time to mess with it since I had volunteered today and yesterday. I really won't have time to work with this since I have school VERY soon. If it's okay with JayDi I will send you it.
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#32
JayDi has kindly sent me the source, but any help on restricting weapons for infected would be appreciated.
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#33
Code:
if (Client.Team != Teams.Axis) { giverandomweapon(Client); } else { TellClient("Zombies stink!",null); }
Had a life, Got a modem..
Reply

#34
(07-18-2012, 16:21)pieter Wrote:
Code:
if (Client.Team != Teams.Axis) { giverandomweapon(Client); } else { TellClient("Zombies stink!",null); }

Thanks, gonna try it now.

hmm getting

giverandomweapon does not exist in the current context and No overload for method Tell client takes two arguments
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#35
i dont have the source but its probably named differently lol
Had a life, Got a modem..
Reply

#36
ok got the source, here's my idea
also disables the plugin during gungame (would destroy the game)

start of the randomweaponmachine

Code:
void weapz(Object arg) { Thread.Sleep(200); ServerClient Client = (ServerClient)arg; // magic trick to avoid running in infected and gungame (by: Pieter/JoSchaap) bool younoworkokay = false; String gametype = GetDvar("g_gametype"); if (gametype == "gun") { younoworkokay = true; } if (gametype == "infect") { younoworkokay = false; if (Client.Team != Teams.Allies) { younoworkokay = true; } } if (younoworkokay != true) { // end of the trick: time to run the randomweapon-machine (also added a '}' at the end) Client.Other.ClearPerks(); // Clear perks ffs string[] AllSecondaries = { // ........long list of random weapons blablabla // ....... skipping to the end of the function to add a closing bracket } Ammoz(Client); } // added this } because of the trick to avoid giving infecteds weapons) }

Im posting this rather then replying, because im not a C# guru lol. i started learning Csharp when i registerred on itsmods Troll

so there might be a better way!
Had a life, Got a modem..
Reply

#37
worked a treat pieter, could you possibly add a choice of weapons for infected, ie: shield,smoke etc ? just so say some will spawn with a shield and some not. and smoke (always smoke)
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#38
that would mean completely rewriting it, i really dont have time for that atm
Had a life, Got a modem..
Reply

#39
oh ok, thanks for what you have done anyway.
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#40
You saved a bunch of our time and debugging. Thanks a ton.. Now if this worked on 1.4 Dumb Bitch
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Wink Plugin with !ban !kick and !tampban clemi555 3 6,495 11-09-2013, 09:21
Last Post: clemi555
  AntiNoScope Plugin clemi555 5 7,593 11-08-2013, 19:13
Last Post: clemi555
  [Release] [SOURCE] Random Weapons. [HARD] Tony. 1 6,154 11-08-2013, 11:11
Last Post: Nekochan
  Help source random weapons [HARD] Tony. 4 6,567 11-08-2013, 05:25
Last Post: [HARD] Tony.
  [Release] Bunker Plugin 1.3 archit 68 55,811 10-30-2013, 11:59
Last Post: clacki
  Help Modifying plugin maverigh 5 7,644 10-19-2013, 10:29
Last Post: Nekochan
Shocked [Request] Switch plugin axel-le-meilleur 6 8,298 10-19-2013, 06:59
Last Post: iRoNinja
Question Help Mw2 weapon skin question FroxIVx4 1 3,881 10-13-2013, 16:54
Last Post: hmann
Question Help Weapon Name iRoNinja 8 8,827 10-08-2013, 08:31
Last Post: iRoNinja
  [Release] Yurio Map Plugin Yurio 101 82,124 09-26-2013, 13:38
Last Post: First_Semyon

Forum Jump:


Users browsing this thread:
1 Guest(s)

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