Raised This Month: $ Target: $400
 0% 

is_module_loaded


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Z@C
Member
Join Date: May 2006
Location: Moscow, Russia
Old 06-11-2006 , 07:48   is_module_loaded
Reply With Quote #1

how this function must be used?
write example for me,PLZ
__________________
HLDS protocol 48 (CS 1.1.2.6 build 4883 on FreeBSD 9.0)
AMXX v1.8.1.3746 | METAMOD v1.19p32 | DProto 0.9.87
Web: Nginx 1.0.10 (build 1.1), Apache 2.2.21, PHP 5.3.8, MySQL 5.5.17
Z@C is offline
Send a message via ICQ to Z@C
VEN
Veteran Member
Join Date: Jan 2005
Old 06-11-2006 , 07:50  
Reply With Quote #2

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[]);
VEN is offline
Z@C
Member
Join Date: May 2006
Location: Moscow, Russia
Old 06-11-2006 , 07:59  
Reply With Quote #3

oh,sorry ...
i mean native get_module(id, name[], nameLen, author[], authorLen, version[], versionLen, &status);
i can write this:
get_module(id,"cstrike",7,_,_,version,63)
__________________
HLDS protocol 48 (CS 1.1.2.6 build 4883 on FreeBSD 9.0)
AMXX v1.8.1.3746 | METAMOD v1.19p32 | DProto 0.9.87
Web: Nginx 1.0.10 (build 1.1), Apache 2.2.21, PHP 5.3.8, MySQL 5.5.17
Z@C is offline
Send a message via ICQ to Z@C
VEN
Veteran Member
Join Date: Jan 2005
Old 06-11-2006 , 08:38  
Reply With Quote #4

Here is how you probably will use that:
Code:
new id = is_module_loaded("cstrike") if (id != -1) {     new name[32], author[31], version[10], status     get_module(id, name, 31, author, 31, version, 9, status)     server_print("Module ^"%s^" v%s by ^"%s^" is loaded", name, version, author) }
VEN is offline
Z@C
Member
Join Date: May 2006
Location: Moscow, Russia
Old 06-11-2006 , 09:01  
Reply With Quote #5

i need this for get value of command "version" of HLmod>CStrike
not for get information about cstrike_amxx.dll or cstrike_amxx.so
can i do that?
__________________
HLDS protocol 48 (CS 1.1.2.6 build 4883 on FreeBSD 9.0)
AMXX v1.8.1.3746 | METAMOD v1.19p32 | DProto 0.9.87
Web: Nginx 1.0.10 (build 1.1), Apache 2.2.21, PHP 5.3.8, MySQL 5.5.17
Z@C is offline
Send a message via ICQ to Z@C
VEN
Veteran Member
Join Date: Jan 2005
Old 06-11-2006 , 09:35  
Reply With Quote #6

No.
VEN is offline
Z@C
Member
Join Date: May 2006
Location: Moscow, Russia
Old 06-11-2006 , 11:46  
Reply With Quote #7

you know how can i do this?
__________________
HLDS protocol 48 (CS 1.1.2.6 build 4883 on FreeBSD 9.0)
AMXX v1.8.1.3746 | METAMOD v1.19p32 | DProto 0.9.87
Web: Nginx 1.0.10 (build 1.1), Apache 2.2.21, PHP 5.3.8, MySQL 5.5.17
Z@C is offline
Send a message via ICQ to Z@C
VEN
Veteran Member
Join Date: Jan 2005
Old 06-11-2006 , 12:26  
Reply With Quote #8

I'm afraid that this is not possible. AMXX is a serverside mod, each client's "version" outputs strictly to their client side.
VEN 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 07:59.


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