Help how add multiple xuid in SetServerCFG
#1
Hi

i want to add multiple xuid but with this code i just can add one xuid Sad

SetServerCFG("protect", "protect_xuids", client.XUID );

pleas someone edit this code for me thanks.
Reply

#2
Split the XUIDs and add them afterwards with ","
Reply

#3
:|
i want do that with SetServerCFG not my self
Reply

#4
xuid1 + ";" + xuid2 ?
[Image: azuw.jpg]
Reply

#5
my means when i use !protect playername ,his xuid added to sv_config.ini with:
Code:
SetServerCFG("protect", "protect_xuids", client.XUID).Split(new char[] { ',' });
and i know this is not correct .
but with :
Code:
SetServerCFG("protect", "protect_xuids", client.XUID );
it just work for one player and when i want to add multiple player to protect, SetServerCFG just write the one xuid to" protect_xuids" with new one .
Reply

#6
Code:
SetServerCFG("protect", "protect_xuids", GetServerCFG("protect", "protect_xuids", string.Empty ) + ";" + client.XUID );
[Image: azuw.jpg]
Reply

#7
(10-24-2012, 18:45)raminr63 Wrote: :|
i want do that with SetServerCFG not my self

well , you aint getting the concept over here
Reply

#8
Or you can do this
Code:
int numberOfProtect_XUIDs=int.Parse(GetServerCFG("protect", "protect_xuids", "0" )); if(numberOfProtect_XUIDs!=0) { SetServerCFG("protect","protect_xuids"+numberOdProtect_XUIDs++.ToString(),Client.XUID); }
I didn't even check it would compile though
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Question Help change single file lzma maker to multiple in c# raminr63 1 4,012 05-12-2013, 19:31
Last Post: raminr63
  Help [Multiple Servers] Losing my fucking mind. White Boy 3 4,850 02-25-2013, 14:36
Last Post: archit
  Help Client xuid + playername 99IRock 2 4,381 12-15-2012, 23:45
Last Post: Ich1994
  xuid finder for mw3(4d1) raminr63 4 5,571 09-17-2012, 17:02
Last Post: SuperNovaAO
  [Request] Ok Help is required for XUID bug Cyanide 45 29,037 07-16-2012, 03:54
Last Post: master131
  Multiple Dedicated MW3 Servers on one server Kradenko 9 10,937 04-23-2012, 12:14
Last Post: Kradenko
  [Request] deny some xuid connect jiuweiljp 1 2,853 04-09-2012, 01:33
Last Post: Dumas
  [Request] Only allow 1x CASTAVOTE per xuid per mapchange JoSchaap 2 3,122 03-27-2012, 09:40
Last Post: kraze1994
  Help Multiple Addons Predje 9 6,347 02-12-2012, 18:35
Last Post: Predje
  How to run multiple servers with the addon? Radec 3 4,719 01-27-2012, 23:21
Last Post: Radec

Forum Jump:


Users browsing this thread:
1 Guest(s)

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