Pass custom cvar at server launch
Hello all.
Is it somehow possible to pass parameters to at server launch, and get value in amxmodx plugin. Something like that ./hlds_run -console -game cstrike +custom_parameter=value. Looks like register_cvar not working, maybe because parameter passed before plugin inicialization. |
Re: Pass custom cvar at server launch
You should be able to set console variables in command line by writing:
Code:
+cvar_name cvar_valueAnyway, why don't you just put cvars in server.cfg? |
Re: Pass custom cvar at server launch
Quote:
But main purpose is to pass a custom cvar. Quote:
I have tried to call register_cvar("custom_parameter", "1", {flag}) with any of this flags FCVAR_ARCHIVE, FCVAR_USERINFO, FCVAR_PROTECTED, FCVAR_SPONLY Quote:
|
| All times are GMT -4. The time now is 18:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.