Raised This Month: $32 Target: $400
 8% 

Forward to one plugin only


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 10-04-2017 , 13:02   Forward to one plugin only
Reply With Quote #1

Hey,

I was wondering if it's possible to only fire some custom forward to one plugin only.
Because now, every plugin who are "linked" through the forward receive and interpret the code by themselfe when it's not required.

Only the second plugin should react, not the first one.
See picture below :


Anybody have an idea ? I missed something in the docs ?
__________________
Want to check my plugins ?

Last edited by Arkarr; 10-04-2017 at 13:03.
Arkarr is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 10-04-2017 , 13:04   Re: Forward to one plugin only
Reply With Quote #2

maybe create multiple fowards?
8guawong is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 10-04-2017 , 13:11   Re: Forward to one plugin only
Reply With Quote #3

Quote:
Originally Posted by 8guawong View Post
maybe create multiple fowards?
Duh ?
__________________
Want to check my plugins ?
Arkarr is offline
pcmaster
AlliedModders Donor
Join Date: Sep 2009
Old 10-04-2017 , 13:14   Re: Forward to one plugin only
Reply With Quote #4

Use https://sm.alliedmods.net/new-api/fu..._StartFunction.
To get a plugin/function handle you'll need https://sm.alliedmods.net/new-api/he...ndPluginByFile and https://sm.alliedmods.net/new-api/fu...FunctionByName.

After you have called the first function, just add params as usual.

That's what I use for my chat coordination plugin as well, where only one plugin should actually "react" to a forward.
__________________
Stopped hosting servers as of November 2018, no longer active around here.

Last edited by pcmaster; 10-04-2017 at 13:16.
pcmaster is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 10-04-2017 , 13:16   Re: Forward to one plugin only
Reply With Quote #5

Quote:
Originally Posted by pcmaster View Post
Use https://sm.alliedmods.net/new-api/fu..._StartFunction.
To get a plugin/function handle you'll need https://sm.alliedmods.net/new-api/he...ndPluginByFile and https://sm.alliedmods.net/new-api/fu...FunctionByName.

After you have called the first function, just add params as usual.

That's what I use for my chat coordination plugin as well, where only one plugin should actually "react" to a forward.
Thanks !

EDIT:
Wait, how do I know wich plugin I shall "transfert" my forward ?
__________________
Want to check my plugins ?

Last edited by Arkarr; 10-04-2017 at 13:51.
Arkarr is offline
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 05:32.


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