Raised This Month: $ Target: $400
 0% 

How can I remove my name of the menu?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
gladius
Veteran Member
Join Date: Jul 2008
Location: Santiago, Chile
Old 12-30-2009 , 23:26   How can I remove my name of the menu?
Reply With Quote #1

i have this code


when someone write "say /players" appears a menu with all names of the players connected, so I want remove the name of the player who write "players"

PHP Code:
#include <amxmodx>

#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /players""PlayerMenu")
}

public 
PlayerMenu(id)
{
    new 
wMenu menu_create("\yPlayers Menu""Handler")
    new 
Pos[3], Name[32]
    
    for (new 
1<= get_maxplayers(); i++)
    {
        if (!
is_user_connected(i))
            continue;
            
        
num_to_str(iPossizeof(Pos)-1)
        
get_user_name(iNamesizeof(Name)-1)
        
        
menu_additem(wMenuNamePos)
    }
    
menu_setprop(wMenuMPROP_EXITMEXIT_ALL)
    
menu_display(idwMenu0)
}

public 
Handler(idwMenuitem)
{
    if (
item == MENU_EXIT)
    {
        
menu_destroy(wMenu)
        return 
PLUGIN_HANDLED
    
}
    
    new 
Data[6], Name[64]
    new 
AccessCallback
    menu_item_getinfo
(wMenuitemAccessDatasizeof(Data)-1Namesizeof(Name)-1Callback)
    
    
set_hudmessage(255255255, -1.0, -1.006.012.0)
    
show_hudmessage(id"%s is the Pink Pony!"Name)
    
    
menu_destroy(wMenu)
    return 
PLUGIN_HANDLED

I hope you can help me
__________________
Proyects
Kreedz Chile Mod [100%] (Fixing some details).

gladius is offline
Send a message via MSN to gladius Send a message via Skype™ to gladius
 



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 04:07.


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