View Single Post
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 04-19-2005 , 22:48  
Reply With Quote #18

Code:
public send_callback(function[])
{
	for(new i = 0; i < get_pluginsnum(); i++)
	{
		new filename[100],other[100]
		get_plugin ( i,filename,99,other,99,other,99,other,99,other,99 )

		new check = callfunc_begin ( function, filename )
		if(check > 0)
		{
			new block = callfunc_end ( )

			if(block == PLUGIN_HANDLED) return;
		}
	}
	return;
}
As you can see, this will call the plugin in ALL plugins, and block it if the plugin wants.

It is faster, but less effecient the the server command callback.
You can easily add parameters to it as well, as many as you like.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka