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(iPlugin, iParams)
{
// Menu code here.
}
Question: How to get the player who typed /test see the menu in the other plugin?
__________________