Post Reply 
 
Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Release MW3: Random Weapon Plugin V1
07-18-2012, 02:27
Post: #31
RE: MW3: Random Weapon Plugin V1
any news on this or even the source?
Related links

[Image: b_560_95_1.png]


[Image: b_560_95_1.png]
Find all posts by this user
Add Thank You Quote this message in a reply
07-18-2012, 02:29
Post: #32
RE: MW3: Random Weapon Plugin V1
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.

[Image: 4xu.png]
U JELLY?
+rep me if I've been helpful Big Grin Thanks.
Find all posts by this user
Add Thank You Quote this message in a reply
07-18-2012, 15:31
Post: #33
RE: MW3: Random Weapon Plugin V1
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]
Find all posts by this user
Add Thank You Quote this message in a reply
07-18-2012, 16:21
Post: #34
RE: MW3: Random Weapon Plugin V1
CSHARP Code
  1. if (Client.Team != Teams.Axis)
  2. {
  3. giverandomweapon(Client);
  4. } else {
  5. TellClient("Zombies stink!",null);
  6. }

Related links

(XS4ALL/GoT2DayZ) DayZ Servers (http://got2dayz.nl)
[Image: b_350_20_2E3226_383F2D_D2E1B5_5A6C3E.png]
[Image: b_350_20_2E3226_383F2D_D2E1B5_5A6C3E.png]
[Image: b_350_20_2E3226_383F2D_D2E1B5_5A6C3E.png]
http://fb.me/GoT2DayZ
Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
[-] The following 2 users say Thank You to JoSchaap for this post:
DidUknowiPwn (07-18-2012), hillbilly (07-18-2012)
07-18-2012, 16:30 (This post was last modified: 07-18-2012 16:46 by hillbilly.)
Post: #35
RE: MW3: Random Weapon Plugin V1
(07-18-2012 16:21)pieter Wrote:  
CSHARP Code
  1. if (Client.Team != Teams.Axis)
  2. {
  3. giverandomweapon(Client);
  4. } else {
  5. TellClient("Zombies stink!",null);
  6. }

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]
Find all posts by this user
Add Thank You Quote this message in a reply
07-18-2012, 17:32
Post: #36
RE: MW3: Random Weapon Plugin V1
i dont have the source but its probably named differently lol

(XS4ALL/GoT2DayZ) DayZ Servers (http://got2dayz.nl)
[Image: b_350_20_2E3226_383F2D_D2E1B5_5A6C3E.png]
[Image: b_350_20_2E3226_383F2D_D2E1B5_5A6C3E.png]
[Image: b_350_20_2E3226_383F2D_D2E1B5_5A6C3E.png]
http://fb.me/GoT2DayZ
Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
07-19-2012, 08:02 (This post was last modified: 07-19-2012 08:04 by JoSchaap.)
Post: #37
RE: MW3: Random Weapon Plugin V1
ok got the source, here's my idea
also disables the plugin during gungame (would destroy the game)

start of the randomweaponmachine

CSHARP Code
  1. void weapz(Object arg)
  2. {
  3. Thread.Sleep(200);
  4. ServerClient Client = (ServerClient)arg;
  5. // magic trick to avoid running in infected and gungame (by: Pieter/JoSchaap)
  6. bool younoworkokay = false;
  7. String gametype = GetDvar("g_gametype");
  8. if (gametype == "gun")
  9. {
  10. younoworkokay = true;
  11. }
  12. if (gametype == "infect")
  13. {
  14. younoworkokay = false;
  15. if (Client.Team != Teams.Allies)
  16. {
  17. younoworkokay = true;
  18. }
  19. }
  20. if (younoworkokay != true)
  21. {
  22. // end of the trick: time to run the randomweapon-machine (also added a '}' at the end)
  23.  
  24. Client.Other.ClearPerks(); // Clear perks ffs
  25.  
  26. string[] AllSecondaries = {
  27.  
  28. // ........long list of random weapons blablabla
  29.  
  30. // ....... skipping to the end of the function to add a closing bracket
  31.  
  32. }
  33.  
  34.  
  35.  
  36. Ammoz(Client);
  37. } // added this } because of the trick to avoid giving infecteds weapons)
  38. }


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!

(XS4ALL/GoT2DayZ) DayZ Servers (http://got2dayz.nl)
[Image: b_350_20_2E3226_383F2D_D2E1B5_5A6C3E.png]
[Image: b_350_20_2E3226_383F2D_D2E1B5_5A6C3E.png]
[Image: b_350_20_2E3226_383F2D_D2E1B5_5A6C3E.png]
http://fb.me/GoT2DayZ
Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
[-] The following 2 users say Thank You to JoSchaap for this post:
DidUknowiPwn (07-19-2012), hillbilly (07-19-2012)
07-19-2012, 12:19 (This post was last modified: 07-19-2012 12:22 by hillbilly.)
Post: #38
RE: MW3: Random Weapon Plugin V1
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)
Related links

[Image: b_560_95_1.png]


[Image: b_560_95_1.png]
Find all posts by this user
Add Thank You Quote this message in a reply
07-19-2012, 12:47
Post: #39
RE: MW3: Random Weapon Plugin V1
that would mean completely rewriting it, i really dont have time for that atm

(XS4ALL/GoT2DayZ) DayZ Servers (http://got2dayz.nl)
[Image: b_350_20_2E3226_383F2D_D2E1B5_5A6C3E.png]
[Image: b_350_20_2E3226_383F2D_D2E1B5_5A6C3E.png]
[Image: b_350_20_2E3226_383F2D_D2E1B5_5A6C3E.png]
http://fb.me/GoT2DayZ
Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
07-19-2012, 13:52
Post: #40
RE: MW3: Random Weapon Plugin V1
oh ok, thanks for what you have done anyway.

[Image: b_560_95_1.png]


[Image: b_560_95_1.png]
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Release] Flag plugin for users 1.6 archit 73 4,680 Yesterday 17:07
Last Post: EnVi Sweden Rocks
  [Release] God Plugin v4.0 [Ingame Rcon Tool] OzonE 312 37,488 05-22-2013 20:21
Last Post: xaliu
  [Release] For Plugin Developers yamraj 4 1,205 05-21-2013 17:55
Last Post: Jone Calerone
  [Release] Chat plugin for permissions SgtLegend 8 304 05-21-2013 11:21
Last Post: SgtLegend
  [Release] Waypoint plugin for users 8q4s8 0 140 05-16-2013 13:10
Last Post: 8q4s8
  [Release] NoKnife Plugin zxz0O0 85 11,078 05-14-2013 21:46
Last Post: Diskretor
Thumbs Up [Release] Show random text on HUD for developers [Z00MBY] Alex 13 1,912 05-09-2013 20:35
Last Post: 2Garin
  [Release] Bunker Plugin 1.3 archit 56 3,101 05-09-2013 14:13
Last Post: M4cbook
  [Release] Speed Plugin hillbilly 25 3,634 05-06-2013 18:19
Last Post: Hallla
  [Release] Votemap plugin zhp0083 82 11,416 04-12-2013 02:46
Last Post: .sepultura.

Forum Jump:


User(s) browsing this thread: 1 Guest(s)
Media Embeding by Simple Audio Video Embeder