Raised This Month: $ Target: $400
 0% 

Native menu help.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Larcyn
Senior Member
Join Date: Oct 2010
Old 11-28-2011 , 09:50   Native menu help.
Reply With Quote #1

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?
__________________

Taking private requests, PM me for information.
Selling HideNSeek & Jailbreak plugins.

Selling Achievement API System (PHP &
MySQL / nVault)

Last edited by Larcyn; 11-28-2011 at 09:52.
Larcyn is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 11-28-2011 , 10:16   Re: Native menu help.
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?t=41251
Devil259 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 08:34.


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