Raised This Month: $ Target: $400
 0% 

How to hook another plugins Command [ Possible ? ]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
byetovice
Senior Member
Join Date: Nov 2009
Location: Turkey
Old 06-17-2011 , 15:17   How to hook another plugins Command [ Possible ? ]
Reply With Quote #1

Hello everybody.
My plugin is :
PHP Code:
public plugin_init()
{
register_concmd("amx_test","cmd_test",ADMIN_BAN,"<target> <amount>")
}

public 
cmd_test(id,level,cid)
{
...
return 
PLUGIN_HANDLED;

It ends with PLUGIN_HANDLED. Is there any way to hook this command, with another plugin ? Getting everything wrote in console,, args.. etc.

Is it possible _? How ? Please help me =D
__________________
Working on mods..
byetovice is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-17-2011 , 16:03   Re: How to hook another plugins Command [ Possible ? ]
Reply With Quote #2

Put the other plugin above the one with PLUGIN_HANDLED in plugins.ini and only return PLUGIN_CONTINUE.
__________________
fysiks is online now
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:25.


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