Author Topic: Server-side to client-sided lists  (Read 1085 times)

Hey, im working on a mod, but it needs to be able to let a non-host client get a list from a .txt in the host's config/server folder.
How would i do that?
Replys are appriciated.

They'd both need something for this to work, either saving a new file or just GUI-wise. Can you be more specific?

Okay, what im trying to do is have a client be able to enter a blid, and be able to save that blid to the .txt in the hosts folder.
Then i need all the previously added names to appear as well, in the list.

Well, again I don't like to be a promoter of RTB as if it were default, but you could make this with RTB variables. Would the client by a super admin?

both admin and super admin. and what do you mean by RTB variables?

RTB adds customized variables between Super Admins (and above) and the server. If the BLIDs are used serverwide (not specific to certain persons) then you might be able to use this.

okay, so how do i add these custom variables, and how do i get them to the client's GUI?

Iban's guide to Client / Server Commands, this lets you send information/call functions between the client and server such as a name and an ID to add to a list.

Iban's guide to Client / Server Commands, this lets you send information/call functions between the client and server such as a name and an ID to add to a list.

I was hoping to avoid external methods which would involve slightly more work on his side. :panda:

Okay, so im using a servercmd that refreshes the strings $line[enter number of lines here] and $linecount
it returns the linecount. If i make it a client cmd, and make it return the lines, could i in the client files this?:

function GUI::onWake(%this)
{
   %this.clear();
   
   for(%i=1;%i<=$LineCount;%i++)
   {
      %line = commandtoclient(%client, 'lines'); //lines is the clientcmd im using
      //other code

and also, i dont think that the RTB variables would work, and the way im using, requires external add-on to add certain elements to another gui.