is_plugin_loaded
- Синтаксис
-
native is_plugin_loaded(const name[], bool:usefilename = false);
Переменная | Описание |
---|---|
name |
Plugin name or filename |
usefilename |
If true searches for plugin filename, false searches for plugin name |
- Описание
- Returns if a plugin is loaded by registered name or filename.
- Пометка
-
An example for a registered name would be "Admin Base", while a possible filename would be "admin.amxx".
- Пометка
-
Prior to AMXX 1.80, this function would only search for plugins registered names, not the filename.
- Пометка
-
The plugin name matching is case insensitive, while the filename matching is case sensitive.
- Возвращает
- Plugin id of the matching plugin, -1 otherwise