AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Intercepting an AMXX Plugin action... (https://forums.alliedmods.net/showthread.php?t=40825)

GoGo_xD 07-04-2006 10:17

Intercepting an AMXX Plugin action...
 
Hi.

I'm looking for a function or something else which can allow to get a specific AMXX action.

Example:

I have a plugin which does the "set_user_rendering" function on a player.

I want to know how can I intercept this AMXX action: when the "set_user_rendering" is done, another plugin does a hud message which contains "he's now glowing!"

Is that possible?

Hawk552 07-04-2006 11:31

Re: Intercepting an AMXX Plugin action...
 
no

L0neW0lf 07-04-2006 11:40

Re: Intercepting an AMXX Plugin action...
 
What plugin are you using which makes the glowefect ?
If it is a public plugin with sma it should be fairly easy adding it to the plugin.........

Hawk552 07-04-2006 11:41

Re: Intercepting an AMXX Plugin action...
 
Quote:

Originally Posted by L0neW0lf
What plugin are you using which makes the glowefect ?
If it is a public plugin with sma it should be fairly easy adding it to the plugin.........

It's always possible to edit every single plugin and use CreateMultiForward calling some function every time you use it, but that's retarded.

He's using the glow thing as an example, he wants to do this on a more massive scale without editing any other scripts. (I'm guessing)

GoGo_xD 07-04-2006 11:42

Re: Intercepting an AMXX Plugin action...
 
I want to call a plugin function when another plugin does something.

Hawk552 07-04-2006 11:44

Re: Intercepting an AMXX Plugin action...
 
Quote:

Originally Posted by GoGo_xD
I want to call a plugin function when another plugin does something.

Then you want CreateMultiForward and ExecuteForward.

GoGo_xD 07-04-2006 11:52

Re: Intercepting an AMXX Plugin action...
 
Quote:

Originally Posted by Hawk552
Then you want CreateMultiForward and ExecuteForward.

And how does it run?

Hawk552 07-04-2006 12:28

Re: Intercepting an AMXX Plugin action...
 
Quote:

Originally Posted by GoGo_xD
And how does it run?

too long to write an example, just look it up, there's I think 3 articles about it so it shouldn't be hard to find a decent one.

GoGo_xD 07-04-2006 15:38

Re: Intercepting an AMXX Plugin action...
 
Quote:

Originally Posted by Hawk552
too long to write an example, just look it up, there's I think 3 articles about it so it shouldn't be hard to find a decent one.

Ok, thanks :up:

L0neW0lf 07-04-2006 18:08

Re: Intercepting an AMXX Plugin action...
 
If you find the solution it would be good to post it here, with your code and explanation, just how to handle one plugin......

Why is it good?
It will optimize forum search functionality :)
And it is interesting hehe


All times are GMT -4. The time now is 08:04.

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