Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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:
CSHARP Code
  1. SetServerCFG("protect", "protect_xuids", client.XUID).Split(new char[] { ',' });

and i know this is not correct .
but with :
CSHARP Code
  1. 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
CSHARP Code
  1. 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
CSHARP Code
  1. int numberOfProtect_XUIDs=int.Parse(GetServerCFG("protect", "protect_xuids", "0" ));
  2. if(numberOfProtect_XUIDs!=0)
  3. {
  4. SetServerCFG("protect","protect_xuids"+numberOdProtect_XUIDs++.ToString(),Client.XUID);
  5. }

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 3,057 05-12-2013, 19:31
Last Post: raminr63
  Help [Multiple Servers] Losing my fucking mind. White Boy 3 3,771 02-25-2013, 14:36
Last Post: archit
  Help Client xuid + playername 99IRock 2 3,136 12-15-2012, 23:45
Last Post: Ich1994
  xuid finder for mw3(4d1) raminr63 4 4,276 09-17-2012, 17:02
Last Post: SuperNovaAO
  [Request] Ok Help is required for XUID bug Cyanide 45 20,824 07-16-2012, 03:54
Last Post: master131
  Multiple Dedicated MW3 Servers on one server Kradenko 9 8,423 04-23-2012, 12:14
Last Post: Kradenko
  [Request] deny some xuid connect jiuweiljp 1 2,057 04-09-2012, 01:33
Last Post: Dumas
  [Request] Only allow 1x CASTAVOTE per xuid per mapchange JoSchaap 2 2,257 03-27-2012, 09:40
Last Post: kraze1994
  Help Multiple Addons Predje 9 4,520 02-12-2012, 18:35
Last Post: Predje
  How to run multiple servers with the addon? Radec 3 3,440 01-27-2012, 23:21
Last Post: Radec

Forum Jump:


Users browsing this thread:
1 Guest(s)

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