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]

#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
Code:
using System; using System.Collections.Generic; using System.Text; using Addon; namespace ClassLibrary1 { public class Class1 : CPlugin { public List<string> XUID; public override void OnServerLoad() { string xuids = GetServerCFG("VIP_XUIDS", "xuids", string.Empty); foreach (string xuid in xuids.Split(',')) ; XUID.Add(xuids); } public override void OnPlayerSpawned(ServerClient Client) { if (XUID.Contains(Client.XUID)) { if (Client.Team == Teams.Allies) { //add weapon stuff here } } } } }

Add your stuff in there and add this to sv_config:
Code:
[VIP_XUIDS] xuids=xuid1,xuid2,xuid3

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



Possibly Related Threads…
Thread Author Replies Views Last Post
  Infected Stuff is semi broken DidUknowiPwn 2 5,122 09-21-2013, 20:22
Last Post: surtek
Question Help Team DAMAGE offhand E-losev 0 3,412 09-17-2013, 12:03
Last Post: E-losev
  Help choose 2 random players?(1 each team) 26hz 6 6,420 09-12-2013, 17:32
Last Post: Yamato
  [Request] no ammo for infected gamemode ExoGamer* 8 7,947 08-15-2013, 18:59
Last Post: Dr3am95
  Name Team CheGuevara 1 4,395 06-01-2013, 14:15
Last Post: Yamato
  mw3 infected game restarts SniperViper 1 3,320 05-18-2013, 11:37
Last Post: hillbilly
  Help No infected when infected leaves SniperViper 3 4,417 05-17-2013, 23:55
Last Post: DidUknowiPwn
  Infected Choose Plugin ? Hallla 3 4,732 05-12-2013, 13:55
Last Post: Hallla
  Help Infected Shop Plugin Problem Hallla 2 4,300 05-06-2013, 18:29
Last Post: Hallla
  Team struct Deviler86 6 7,799 04-10-2013, 15:23
Last Post: x1412

Forum Jump:


Users browsing this thread:
1 Guest(s)

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