PDA

View Full Version : Checking plugins


purple nurple
04-15-2008, 19:55
Is there a way to see if a plugin is installed or running?
Say I have a plugin that plays music or something how do I check if a plugin name something.amxx is running?

Exolent[jNr]
04-15-2008, 19:57
rcon amxx plugins

YamiKaitou
04-15-2008, 20:10
http://amxmodx.org/funcwiki.php?go=func&id=627

purple nurple
04-15-2008, 20:15
What about if its running or not?

Exolent[jNr]
04-15-2008, 20:21
Iterates through the plugins
So I'm sure it only checks for the plugins that are loaded.
If it isn't loaded, you will get the invalid handle.

YamiKaitou
04-15-2008, 20:23
So I'm sure it only checks for the plugins that are loaded.
If it isn't loaded, you will get the invalid handle.

Correct. That function will return true even if the plugin has a bad load or error or paused.

For running, you could have it register a cvar and then in the other plugin check to see if the cvar exists.