Raised This Month: $ Target: $400
 0% 

Load plugin with my plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 11-01-2013 , 10:57   Load plugin with my plugin
Reply With Quote #1

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
__________________
Jhob94 is offline
Phant
Veteran Member
Join Date: Sep 2009
Location: New Jersey
Old 11-01-2013 , 11:17   Re: Load plugin with my plugin
Reply With Quote #2

You can use cRON, which will be run script in needed time, which be edit "plugins.ini" file (add/remove plugins).
Phant is offline
Send a message via ICQ to Phant
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 11-01-2013 , 12:04   Re: Load plugin with my plugin
Reply With Quote #3

use server commands:
Code:
amxx pause/unpause "pluginname.amxx"

Last edited by TheDS1337; 11-01-2013 at 12:05.
TheDS1337 is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 11-01-2013 , 17:37   Re: Load plugin with my plugin
Reply With Quote #4

Isnt possible to do what i asked?
__________________
Jhob94 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-01-2013 , 18:05   Re: Load plugin with my plugin
Reply With Quote #5

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
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Old 11-02-2013, 04:43
LordOfNothing
This message has been deleted by ConnorMcLeod. Reason: you continue
red_bull2oo6
Senior Member
Join Date: Mar 2012
Location: Braila, Romania
Old 11-02-2013 , 12:24   Re: Load plugin with my plugin
Reply With Quote #7

look in fyskis's polymorph plugin.
it 'plays' with plugins.ini file

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

My PC Themes . .
red_bull2oo6 is offline
Reply



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 23:16.


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