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 , 17:50   Re: Is it possible to start plugin, which not exists in plugins.ini from another plu
Reply With Quote #1

Quote:
Originally Posted by kp3t3h View Post
btw, why would you want to start a plugin from another plugin
why dont you just enable both from the beginning
Because in the beginning it does not exist. And in the original version of the plugin file will be named at random.

Well, i understood. I cant' start this from another plugin.
So we have to
1. Create plugin file
2. Add this plugin to plugins.ini
2.1 Add a lint with new plugin name to amxx.cfg to find it after server restart.
3. Restart server map.
3.1 Read line with plugin name from amxx.cfg and save it in memory.
3.2 Remove line with plugin name from amxx.cfg
4. Remove plugin from plugins.ini
5. Delete plugin file. That's strange, but it will not crash.
Chuvi is offline
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 05-13-2012 , 17:38   Re: Is it possible to start plugin, which not exists in plugins.ini from another plu
Reply With Quote #2

The only way how you can do that is the method fysiks said. point. xD
__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers
mottzi is offline
Send a message via MSN to mottzi
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