View Full Version : How do I check if a server.cfg already has a specific line?
awwhailnaw
04-18-2008, 03:08
I want to check if the person that is using this plugin has a certain cvar in their server.cfg. If it doesn't then the plugin writes it in there.
YamiKaitou
04-19-2008, 11:49
Read the file? Register the cvar anyways?
ConnorMcLeod
04-19-2008, 12:26
Is this cvar a default game's cvar, or another plugin's cvar ?
Are you saying that you want to modify someone's server.cfg file with your plugin?
Dr. Jan Itor
04-19-2008, 14:24
server.cfg is their server cfg file for their own servers why would u want to change that?
awwhailnaw
04-19-2008, 21:00
Its a cvar that is in the game already.
ConnorMcLeod
04-20-2008, 04:40
So just make your plugin set the cvar to the value you want.
Do that 7 seconds after plugin_init(), then you are sure that server.cfg, amxx.cfg and specific maps .cfg files have been executed.
awwhailnaw
04-20-2008, 08:32
Err duh...I r stupid...Thanks for the help
vBulletin® v3.8.7, Copyright ©2000-2024, vBulletin Solutions, Inc.