model precaching
Well, i have messed up again.
My plugin is not precaching the models. The bool is working, another part of the plugin has shown me that already. The game is dod and the models' directories are correct, even uploaded to the right places. But the models are not being downloaded from the fastdownload site or the game server site. PHP Code:
|
Re: model precaching
1.Where do you set the boolean true?
2.Make shure the precache limit has not be reached. |
Re: model precaching
bool is set true in the plugin_init
and this is the only custom plugin that precaches anything. |
Re: model precaching
plugin_init() is called after plugin_precache() that explains why is not working.
|
Re: model precaching
Ok, well I guess I could make a plugin that only loads on the map for the precache, but is there another way for me to make the downloads happen only when the map is forest?
I think I have seen some plugins where they do this using: PHP Code:
|
Re: model precaching
One less elegant way is specifically enabling that plugin only for that map, in your maps configs.
You'd create something like Code:
amxmodx/configs/maps/plugins-de_forest.iniCode:
myplugin.amxx |
Re: model precaching
I thought about that, but that cant work for me, you see, this plugin is actually my DoD Class Menu that I am modifying, and I really do not want to disable the plugin for the rest of the server and this is also a good learning area for me so I can understand something I have not done before.
But if the above does not work, how can I disable a plugin for a certain map as well? |
Re: model precaching
Why didn't someone just tell me to do this:
PHP Code:
|
Re: model precaching
:!: Good question. Guess it slipped my mind.
Anyway if you wanna disable a plugin by that method I mentioned, put "disable" next to its name. |
Re: model precaching
Quote:
Just remember, plugin_precache gets executed before plugin_init |
| All times are GMT -4. The time now is 03:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.