Raised This Month: $ Target: $400
 0% 

Simple question about register_clcmd


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Isobold
Veteran Member
Join Date: Mar 2004
Old 10-19-2004 , 06:49   Simple question about register_clcmd
Reply With Quote #1

I just want to know, wether it can cause problems, when more then one plugin are using the same register_clcmd?

For example: Plugin A
register_clcmd( "say /top15", "show_top15_climbers", ACCESS_CLIMBER, " - starts / stops climb timer" )

Plugin B
register_clcmd( "say /top15", "show_top15_runner", ACCESS_RUNNER, " - starts / stops run timer" )

Would it cause any problem running A and B on the same server?
Isobold is offline
svendude
Member
Join Date: Aug 2004
Old 10-19-2004 , 06:52   Re: Simple question about register_clcmd
Reply With Quote #2

Quote:
Originally Posted by Isobold
For example: Plugin A

register_clcmd( "say /top15", "show_top15_climbers", ACCESS_CLIMBER, " - starts / stops climb timer" )

Plugin B
register_clcmd( "say /top15", "show_top15_runner", ACCESS_RUNNER, " - starts / stops run timer" )

Would it cause any problem running A and B on the same server?
Well if you say /top15 won't it start both plugins? maby make a /top15 and b top15?[/small]
svendude is offline
Send a message via Yahoo to svendude
Isobold
Veteran Member
Join Date: Mar 2004
Old 10-19-2004 , 07:33  
Reply With Quote #3

my problem is, that I have an plugin, which uses a certain say, for creating a teleportpoint (kz_multiplugin, "say /checkpoint"). Now I have another plugin(Climbtimer), which stopps the time, players are using for climbing. Now I want the secondplugin not to put the player into the top15-list, if he used a teleport/checkpointpoint from plugin one.

Thats why I need both to get triggert at the same moment.
Isobold is offline
LynX
Veteran Member
Join Date: Oct 2004
Old 10-19-2004 , 09:15  
Reply With Quote #4

As far as I saw, you should write different words for both plugins. I can't tell you right, because in one sentence you want that first plugin and second don't co-operate, and then in second that you want them to be triggered. If you can, please refill your question.
LynX is offline
Send a message via ICQ to LynX
Isobold
Veteran Member
Join Date: Mar 2004
Old 10-19-2004 , 10:11  
Reply With Quote #5

sry for my bad englisch. I want plugin 2 to cooperate with plugin one. A certain action in plugin 1 shall trigger something in plugin 2. Plugin 1 shall not(!) be modified. Plugin 2 shall react on the same say, plugin 1 already reacts on.


If it helps: http://forums.alliedmods.net/showthr...?p=64594#67706

The second point of the to-do-list.
Isobold 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 17:25.


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