Raised This Month: $ Target: $400
 0% 

How to produce a global event?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wwzw
Member
Join Date: Feb 2009
Old 05-05-2012 , 03:01   Re: How to produce a global event?
Reply With Quote #1

Thank you very much for your help!

Now I do so:

In a.sma (main plugin)
PHP Code:
#include <amxmodx>
new iForward
public plugin_init()
{
    ......
    
iForward CreateMultiForward("client_logged",ET_IGNORE,FP_CELL)
    
register_clcmd("say /test","test")
}
 
public 
test(id)
{
    new 
iReturn
    ExecuteForward
(iForwardiReturnid)
    return 
PLUGIN_HANDLED;

Other plugin: b.sma Or c.sma Or d.sma......
PHP Code:
public client_logged(id)
{
   
client_print(0print_chat"client_logged:<%d>",id);


Last edited by wwzw; 05-05-2012 at 03:26.
wwzw is offline
Reply


Thread Tools
Display Modes

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 00:21.


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