ItsMods

Full Version: MW3 infected team help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
nice code thanks,
BTW, anyway possible to add like 10 players in a config file?
So we can use for vips and stuff this ?
(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
Aha thanks so much, we will test it today when im back from school Smile
Pages: 1 2