AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Simple question about register_clcmd (https://forums.alliedmods.net/showthread.php?t=6917)

Isobold 10-19-2004 06:49

Simple question about register_clcmd
 
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?

svendude 10-19-2004 06:52

Re: Simple question about register_clcmd
 
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]

Isobold 10-19-2004 07:33

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.

LynX 10-19-2004 09:15

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.

Isobold 10-19-2004 10:11

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.


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

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