ItsMods
Help how add multiple xuid in SetServerCFG - Printable Version

+- ItsMods (https://www.itsmods.com)
+-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html)
+--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html)
+--- Thread: Help how add multiple xuid in SetServerCFG (/Thread-Help-how-add-multiple-xuid-in-SetServerCFG.html)



how add multiple xuid in SetServerCFG - raminr63 - 10-23-2012

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.


RE: how add multiple xuid in SetServerCFG - OzonE - 10-24-2012

Split the XUIDs and add them afterwards with ","


RE: how add multiple xuid in SetServerCFG - raminr63 - 10-24-2012

:|
i want do that with SetServerCFG not my self


RE: how add multiple xuid in SetServerCFG - zxz0O0 - 10-24-2012

xuid1 + ";" + xuid2 ?


RE: how add multiple xuid in SetServerCFG - raminr63 - 10-25-2012

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 .


RE: how add multiple xuid in SetServerCFG - zxz0O0 - 10-25-2012

Code:
SetServerCFG("protect", "protect_xuids", GetServerCFG("protect", "protect_xuids", string.Empty ) + ";" + client.XUID );



RE: how add multiple xuid in SetServerCFG - OzonE - 10-25-2012

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

well , you aint getting the concept over here


RE: how add multiple xuid in SetServerCFG - archit - 10-26-2012

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