• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help MW3 infected team help
#11
nice code thanks,
BTW, anyway possible to add like 10 players in a config file?
So we can use for vips and stuff this ?
[Image: b_560_95_1.png]
[Image: hax0r3ez.gif]
  Reply
#12
(11-22-2012, 21:01)99IRock Wrote: nice code thanks,
BTW, anyway possible to add like 10 players in a config file?
So we can use for vips and stuff this ?

I hope this will work, I didn't test it
CSHARP Code
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using Addon;
  5.  
  6. namespace ClassLibrary1
  7. {
  8. public class Class1 : CPlugin
  9. {
  10. public List<string> XUID;
  11. public override void OnServerLoad()
  12. {
  13. string xuids = GetServerCFG("VIP_XUIDS", "xuids", string.Empty);
  14. foreach (string xuid in xuids.Split(',')) ;
  15. XUID.Add(xuids);
  16. }
  17. public override void OnPlayerSpawned(ServerClient Client)
  18. {
  19. if (XUID.Contains(Client.XUID))
  20. {
  21. if (Client.Team == Teams.Allies)
  22. {
  23. //add weapon stuff here
  24. }
  25. }
  26. }
  27. }
  28. }


Add your stuff in there and add this to sv_config:
Code:
[VIP_XUIDS]
xuids=xuid1,xuid2,xuid3
  Reply
#13
Aha thanks so much, we will test it today when im back from school Smile
[Image: b_560_95_1.png]
[Image: hax0r3ez.gif]
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Call of Duty loser calls in SWAT team hoax on kid who beat him RaZ 3 1,492 04-24-2014, 19:31
Last Post: Casper
Thumbs Up [Release] AllInOne! for infected robinvm 4 2,175 10-19-2013, 20:00
Last Post: Casper
  Infected Stuff is semi broken DidUknowiPwn 2 1,426 09-21-2013, 20:22
Last Post: surtek
Question Help Team DAMAGE offhand E-losev 0 938 09-17-2013, 12:03
Last Post: E-losev
  Help choose 2 random players?(1 each team) 26hz 6 1,789 09-12-2013, 17:32
Last Post: Yamato
  [Request] no ammo for infected gamemode ExoGamer* 8 1,943 08-15-2013, 18:59
Last Post: Dr3am95
  [Release] AntiRage for Infected Game Mode yokai134 17 6,445 08-04-2013, 22:22
Last Post: yokai134
Wink [Release] Shop system for Infected gametype Nekochan 125 31,484 07-05-2013, 18:09
Last Post: mohammadnanaa
  Name Team CheGuevara 1 1,210 06-01-2013, 14:15
Last Post: Yamato
  mw3 infected game restarts SniperViper 1 810 05-18-2013, 11:37
Last Post: hillbilly

Forum Jump:


Users browsing this thread: 1 Guest(s)