set_pcvar_num after plugin_init and plugin_cfg
Hey AM,
Is there a way to set cvars from a plugin, just after all the cvars are set from cfg files, and after plugin_init and plugin_cfg are executed? Best regards, MaNaReaver. |
Re: set_pcvar_num after plugin_init and plugin_cfg
set_task is what you're looking for
|
Re: set_pcvar_num after plugin_init and plugin_cfg
Quote:
plugin_init() -> cvar loaded and set to default value server_exec() -> server cvars loaded, no cvar set here. plugin_cfg() -> set_pcvar_num the cvar to another value config.cfg -> config cvars loaded, changing back cvar to default checkfunctions() -> forward function that loads in plugin_init -> if(get_pcvar_num(cvar)) -> fails to carry out the desired option. Best regards, MaNaReaver. |
Re: set_pcvar_num after plugin_init and plugin_cfg
|
Re: set_pcvar_num after plugin_init and plugin_cfg
Quote:
|
| All times are GMT -4. The time now is 13:51. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.