Raised This Month: $51 Target: $400
 12% 

is_module_loaded


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
redmist
Member
Join Date: May 2004
Old 11-15-2004 , 02:54   is_module_loaded
Reply With Quote #1

Hi,

I'm trying to write a plugin in a way that it simply has reduced functionality if a certain module isn't loaded. I thought that was the whole idea of the 'is_module_loaded' function but the plugin still fails to load at all if the module isn't available. What's the deal?
redmist is offline
BAILOPAN
Join Date: Jan 2004
Old 11-15-2004 , 06:04  
Reply With Quote #2

You cannot really achieve this. You can use this in AMX Mod X 0.20:

Code:
public plugin_modules() {     require_module("cstrike") }

require_module can only be used in plugin_modules(), and it's the only native that can be used there. the name must be a case-insensitive match to the module's name.
__________________
egg
BAILOPAN is offline
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 23:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode