AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   possible? (https://forums.alliedmods.net/showthread.php?t=121351)

infek 03-14-2010 17:16

possible?
 
alright lets just say i have 2 seperate plugins both have menus
is it possible to connect one menu to the other plugins menu.
if it is can you do an example code plz & thx you.

better Example
hello.amxx
IN GAME: say /hello
Code:

HELLO MENU
1. HI
2. HELLO
3. CACAFACE "FROM ABC.amxx"

---------------------------------------
abc.amxx
IN GAME: say /abc
Code:


ABC MENU
1. ZERO
2. THREE
3. CACAFACE


Exolent[jNr] 03-14-2010 17:24

Re: possible?
 
You can use dynamic natives, create forwards, or use callfuncs.

grimvh2 03-15-2010 13:37

Re: possible?
 
There are variouse ways to link plugins to each other.
There are complex and easy (temporarly) methods.

For example if you really want it easy and fast just let the item call a cmd using client_cmd() and register that cmd with the other plugin.
This is pretty easy, so only use it if it doesnt matter.

SnoW 03-15-2010 14:53

Re: possible?
 
Quote:

Originally Posted by Exolent[jNr] (Post 1117513)
You can use dynamic natives, create forwards, or use callfuncs.

+ xvars


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

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