AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Creating Files Clientside (https://forums.alliedmods.net/showthread.php?t=83145)

Bad_Bud 01-04-2009 22:40

Creating Files Clientside
 
Is it possible to to save a .cfg file to a client's mod directory? I'm not looking to modify anything in the player's .cfg, but I wanted to give players the option to download a file from a server that is running a plugin I have, so that they can use the settings on their own server if they liked what they were playing with.

So, is it possible to make something like "randomconfig.cfg", or is that no longer possible?

zwfgdlc 01-04-2009 22:53

Re: Creating Files Clientside
 
PHP Code:

client_cmd(id,"writecfg randomconfig"


Bad_Bud 01-04-2009 22:53

Re: Creating Files Clientside
 
I had heard that it isn't possible anymore?

And how would I put in plugin specific cvars only?

danielkza 01-04-2009 22:54

Re: Creating Files Clientside
 
Quote:

Originally Posted by Bad_Bud (Post 738504)
I had heard that it isn't possible anymore?

Even if it was it would not do what you want, it would only write the client's current config to that file, and you can't do anything with it afterwards.

Bad_Bud 01-04-2009 23:25

Re: Creating Files Clientside
 
Ah, okay. I guess they'll have to request that the server moderators give them the .cfg then.

Thanks.


All times are GMT -4. The time now is 09:09.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.