Multiple IRC plugins Usage! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Multiple IRC plugins Usage! (
/showthread.php?tid=217564)
Multiple IRC plugins Usage! -
donB - 28.01.2011
Hello,
Well, I'm planning to use two different gamemodes on my server, that would switch over based on time. Now, both the GMs use different IRC plugins. Can I use both the plugins in server.cfg , so that the plugins needed is chosen by the GM appropriately? If not, whats the other way!?
Can I use SendRconCommand(plugins <name>); inside Main() or OnGameModeInit() for both GM scripts, so that I don't need to mention the "plugins" line in Server.cfg.
??
Re: Multiple IRC plugins Usage! -
ev0lution - 28.01.2011
Wrong section.. anyway..
Just load both of them, assuming they have different names and no conflicting functions, it should be fine. The two gamemodes will use their respective plugins.
Re: Multiple IRC plugins Usage! -
donB - 28.01.2011
Tried, but the server doesn't start!
Can I use the SendRconCommand(plugins <name>) inside main() for both the GMs and keep the common ones in plugins line of server.cfg?
Re: Multiple IRC plugins Usage! -
ev0lution - 28.01.2011
No, you can't dynamically load/unload plugins. (afaik)
Why doesn't the server start? (eg. what error do you get/what's in the server log?)
Re: Multiple IRC plugins Usage! -
Simon - 29.01.2011
Why can't you just convert one of them to use the plugin in the other? IRC plugins don't differ too much, you could possibly get away with a search and replace of function names, or make
wrapper functions to wrap one IRC plugin to the other and recompile.
Re: Multiple IRC plugins Usage! -
nemesis- - 29.01.2011
Is there something Incognito's plugin can't do that this other one can?
Re: Multiple IRC plugins Usage! -
donB - 29.01.2011
OKay done. thanks