Raised This Month: $ Target: $400
 0% 

Is it possible to start plugin, which not exists in plugins.ini from another plugin?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Chuvi
Junior Member
Join Date: Feb 2012
Location: Russia,Saint-Petersburg
Old 05-13-2012 , 15:55   Is it possible to start plugin, which not exists in plugins.ini from another plugin?
Reply With Quote #1

Is it possible to start one plugin from another, while server turned on?
I mean something like that
Code:
public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_clcmd("start_something","start",ADMIN_CFG)
	// Add your code here...
}

public start()
{

run_plugin("another_plugin.amxx")	
}
Chuvi is offline
Aooka
Veteran Member
Join Date: Aug 2011
Location: Villeurbanne
Old 05-13-2012 , 16:03   Re: Is it possible to start plugin, which not exists in plugins.ini from another plu
Reply With Quote #2

I think it's impossible but i'm not sure ...
__________________
Pawn ? Useless
Aooka is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-13-2012 , 16:27   Re: Is it possible to start plugin, which not exists in plugins.ini from another plu
Reply With Quote #3

No, that is not possible with AMX Mod X.

To achieve the same effect, you would need to load the plugin in a disabled state and then enable it from another plugin. This may require editing the plugin which you want "loaded" during the game.
__________________
fysiks is offline
Waleed
Senior Member
Join Date: May 2012
Location: Pakistan
Old 05-13-2012 , 16:31   Re: Is it possible to start plugin, which not exists in plugins.ini from another plu
Reply With Quote #4

I think A redirecting Plugin (FIRST PLUGIN) should exec plugins/anyplugin.amxx (second plugin) so it can start it,Or it trigger it on a special event,I guess.Don't Know much,Just guessing......
Waleed is offline
Send a message via Skype™ to Waleed
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-13-2012 , 16:38   Re: Is it possible to start plugin, which not exists in plugins.ini from another plu
Reply With Quote #5

Quote:
Originally Posted by Waleed View Post
I think A redirecting Plugin (FIRST PLUGIN) should exec plugins/anyplugin.amxx (second plugin) so it can start it,Or it trigger it on a special event,I guess.Don't Know much,Just guessing......
You can't load a plugin that is not already loaded. I already said this.
__________________
fysiks is offline
Chuvi
Junior Member
Join Date: Feb 2012
Location: Russia,Saint-Petersburg
Old 05-13-2012 , 17:23   Re: Is it possible to start plugin, which not exists in plugins.ini from another plu
Reply With Quote #6

Quote:
Originally Posted by fysiks View Post
You can't load a plugin that is not already loaded. I already said this.
It's a pity...
Chuvi is offline
kp3t3h
Senior Member
Join Date: Feb 2011
Old 05-13-2012 , 17:11   Re: Is it possible to start plugin, which not exists in plugins.ini from another plu
Reply With Quote #7

you can load a plugin if that second plugin has a cvar for on/off :]
can you?
__________________
need help with the following
no.1, no.2, no.3, no.4 no.5

Last edited by kp3t3h; 05-13-2012 at 17:11.
kp3t3h is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-13-2012 , 17:12   Re: Is it possible to start plugin, which not exists in plugins.ini from another plu
Reply With Quote #8

Quote:
Originally Posted by kp3t3h View Post
you can load a plugin if that second plugin has a cvar for on/off :]
can you?
No, loading a plugin is different from enabling functionality in a plugin. Read my post.
__________________
fysiks is offline
Chuvi
Junior Member
Join Date: Feb 2012
Location: Russia,Saint-Petersburg
Old 05-13-2012 , 17:22   Re: Is it possible to start plugin, which not exists in plugins.ini from another plu
Reply With Quote #9

Is not exists while server is starting. It will appear later.
See spoilers.
main_plugin


secret_plugin source
Chuvi is offline
kp3t3h
Senior Member
Join Date: Feb 2011
Old 05-13-2012 , 17:36   Re: Is it possible to start plugin, which not exists in plugins.ini from another plu
Reply With Quote #10

btw, why would you want to start a plugin from another plugin
why dont you just enable both from the beginning


oh and fysiks
i dont understand your post
__________________
need help with the following
no.1, no.2, no.3, no.4 no.5

Last edited by kp3t3h; 05-13-2012 at 17:40.
kp3t3h 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 00:23.


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