AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Native menu help. (https://forums.alliedmods.net/showthread.php?t=172979)

Larcyn 11-28-2011 09:50

Native menu help.
 
Hello, I need some help with natives.

This is my primary plugin, the core.
When i type /test the plugin should go search for another plugin with the native: "MenuInAnotherPlugin"
PHP Code:

#include <amxmodx>

native MenuInAnotherPlugin()

public 
plugin_init() 
{
    
register_plugin("Native Test [CORE]""1.0""Larcyn")
    
    
register_clcmd("say /test""CmdMenu")
}

public 
CmdMenu(iPlayer)
{
    
MenuInAnotherPlugin()


Below here i added my Secondary plugin where the native is linking to, but i need to make it to view to the player, how to do that? I've tried with get_param but it's not working.

PHP Code:

#include <amxmodx>

public plugin_init() 
{
    
register_plugin("Native Test [SECONDARY PLUGIN]""1.0""Larcyn")
}

public 
plugin_natives() 
{
    
register_native("MenuInAnotherPlugin""Menu")
}

public 
Menu(iPluginiParams)
{
    
// Menu code here.


Question: How to get the player who typed /test see the menu in the other plugin?

Devil259 11-28-2011 10:16

Re: Native menu help.
 
http://forums.alliedmods.net/showthread.php?t=41251


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

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