Quote:
Originally Posted by KliPPy
You should be able to set console variables in command line by writing:
Code:
+cvar_name cvar_value
// e.g.
+mp_startmoney 16000
|
Yes, it works, but only for already predefined by engine cvars like mp_startmoney, sv_roundtime e.t.c
But main purpose is to pass a custom cvar.
Quote:
Originally Posted by KliPPy
but I am not sure if that counts in cvars registered by plugins with register_cvar(), I think it does.
|
Unfortunately, looks like it does't.
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:
Originally Posted by KliPPy
Anyway, why don't you just put cvars in server.cfg?
|
Here the same situation, works only for predefined cvars. If i add line "custom_parameter 22", i cant even get the value of it in console of already launched server. (Just type in console ""mp_startmoney" and you can see ""mp_startmoney" is "800"", but if i type "custom_parameter" i got no output)