AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to hook another plugins Command [ Possible ? ] (https://forums.alliedmods.net/showthread.php?t=159477)

byetovice 06-17-2011 15:17

How to hook another plugins Command [ Possible ? ]
 
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

fysiks 06-17-2011 16:03

Re: How to hook another plugins Command [ Possible ? ]
 
Put the other plugin above the one with PLUGIN_HANDLED in plugins.ini and only return PLUGIN_CONTINUE.


All times are GMT -4. The time now is 23:25.

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