Raised This Month: $ Target: $400
 0% 

Plguin Cvar From Cfg


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 10-03-2007 , 15:35   Re: Plguin Cvar From Cfg
Reply With Quote #6

Please stop posting in all bold.

No modules are needed to read a file.

A very easy method is to register the cvar's in your plugin_init(), then somewhere in your code, where you want the cvar's to be read from a .cfg file, do: server_cmd("exec %s", configfile) or whatever. This avoids having to go through the mess of formatting extra stuff just to read a few cvars.
__________________
M249-M4A1 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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