Raised This Month: $ Target: $400
 0% 

set_pcvar_num after plugin_init and plugin_cfg


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
MaNaReaver
Member
Join Date: Apr 2020
Location: India
Old 10-28-2020 , 10:06   Re: set_pcvar_num after plugin_init and plugin_cfg
Reply With Quote #3

Quote:
Originally Posted by CrazY. View Post
set_task is what you're looking for
I tried using set_task with different times, but the variability taken to load the configs and the plugin_* functions is causing cvars to turn back to normal. For example:

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.
__________________
MaNaReaver 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 13:51.


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