Upload file from client
I want the client to be able to save his CFG file on the server.
http://forums.alliedmods.net/showthr...935#post486935 How do I upload a file from the client side? If thats not possible then can I atleast ask them to exec the cfg file and capture all the commands sent to the server and write the file on the server side ? |
Re: Upload file from client
I don't think that would work. Commands like "bind", "alias", etc WON'T be sent to the server as they are handled client-side.
|
Re: Upload file from client
I don't think any of your question is possible.
[offtopic]The image in your sig is not slow connection friendly at all...[/offtopic] |
Re: Upload file from client
This is definitely doable. However, I can't figure out a way to send information from the client to the server that isn't incredibly annoying.
If you just say each line of your cfg file, that can be captured and recorded. Maybe you could do a setinfo, like setinfo crap "lots of text here" but I'm sure there's a limit to how many characters can be in the setinfo. |
Re: Upload file from client
What about
setinfo numoflines 8 setinfo line0 "somestuff goes here" setinfo line1 "more stuff" .. .. setinfo line7 "end of stuff's" And then on server side create a for loop Code:
|
Re: Upload file from client
Then you should be prepared for "Info string length exceeded" !!!
Oh, and another thing: How do you suppose those setinfo values would be filled ?!? |
Re: Upload file from client
Well I was hoping that stupok had an answer for that.. I was just expanding on what he said..
|
Re: Upload file from client
Quote:
|
Re: Upload file from client
Quote:
That wont be necessary as I only need to get the clients cvars. I'll just put everysingle CVAR i can think of in a 2 dimentional string array. And loop through it with get_user_info and write it as a file on the server. Anyone have a list of everysingle cvar ? |
Re: Upload file from client
Let me put it this way instead... Is therer any cvar that ISNT in config.cfg ?
And what about commands. Things like +mlook and bind ? How do i get the bind status of the keys ? |
| All times are GMT -4. The time now is 10:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.