AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Load plugin with my plugin (https://forums.alliedmods.net/showthread.php?t=229088)

Jhob94 11-01-2013 10:57

Load plugin with my plugin
 
How can i load a new plugin using mine?
Example, if i want to check time and if is days, loads x plugin. Else if is night, loads y plugin.

I tried to search, but if i use "plugin" as keyword, it gets stuck and dont find results :|

Phant 11-01-2013 11:17

Re: Load plugin with my plugin
 
You can use cRON, which will be run script in needed time, which be edit "plugins.ini" file (add/remove plugins).

TheDS1337 11-01-2013 12:04

Re: Load plugin with my plugin
 
use server commands:
Code:

amxx pause/unpause "pluginname.amxx"

Jhob94 11-01-2013 17:37

Re: Load plugin with my plugin
 
Isnt possible to do what i asked?

ConnorMcLeod 11-01-2013 18:05

Re: Load plugin with my plugin
 
When your plugin is loaded, it is too late to load or not other plugins, so no, what you ask is not possible.

You can for example, at plugin_end(), write content of plugins-nightday.ini, and according to time, copy in it content of day.ini or night.ini

red_bull2oo6 11-02-2013 12:24

Re: Load plugin with my plugin
 
look in fyskis's polymorph plugin.
it 'plays' with plugins.ini file :)

@LordOfNothing: useless post, not any plugin has an main cvar for enable


All times are GMT -4. The time now is 23:16.

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