Code:
if (is_module_loaded("mymodule") != -1)
server_print("My module is loaded!")
Code:
/* Checks whether a module is loaded. If it is not, the return value is -1, otherwise
* the return value is the module id. The function is case insensitive. */
native is_module_loaded(const name[]);